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:
@@ -2,10 +2,7 @@ class Foo {
|
||||
toString { return "Foo" }
|
||||
}
|
||||
|
||||
// A class with no constructors gets an argument-less "new" one by default.
|
||||
// Classes inherit the argument-less "new" one by default.
|
||||
var foo = new Foo
|
||||
io.write(foo is Foo) // expect: true
|
||||
io.write(foo.toString) // expect: Foo
|
||||
|
||||
// TODO: Test that class doesn't get default constructor if it has an explicit
|
||||
// one.
|
||||
|
||||
Reference in New Issue
Block a user