fix: add list newline handling and resolve multiple test TODOs across compiler and test suite

- Add TOKEN_LINE matching after list elements in compiler to allow newlines before commas or closing brackets
- Add tests for list newline handling, EOF after comma/element, and class name inside body
- Remove resolved TODOs for default constructors, inherited fields, metaclass is checks, zero comparison, and bitwise not behavior
This commit is contained in:
Bob Nystrom
2013-12-20 20:42:11 +00:00
parent 46f53e4421
commit d9255666f4
12 changed files with 54 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
class Foo {
static sayName {
io.write(Foo.toString)
}
sayName {
io.write(Foo.toString)
}
static toString { return "Foo!" }
}
Foo.sayName // expect: Foo!
(new Foo).sayName // expect: Foo!