Disallow def definitions inside conditions · Issue #1271 · crystal-lang/crystal

This currently compiles but shouldn't: if 1 == 2 def foo 1 end end foo #=> 1 Seen here