Allow empty blocks.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{} // By itself.
|
||||
|
||||
// In a statement.
|
||||
if (true) {}
|
||||
if (false) {} else {}
|
||||
|
||||
IO.write("ok") // expect: ok
|
||||
@@ -0,0 +1,2 @@
|
||||
var f = fn {}
|
||||
IO.write(f.call) // expect: null
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
bar {}
|
||||
}
|
||||
|
||||
IO.write((new Foo).bar) // expect: null
|
||||
Reference in New Issue
Block a user