Add another test for constructor syntax.
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
class Foo {
|
||||||
|
+ other { return "Foo " + other }
|
||||||
|
}
|
||||||
|
|
||||||
|
io.write(new Foo + "value") // expect: Foo value
|
||||||
|
|
||||||
|
// TODO: Other expressions following a constructor, like new Foo.bar("arg").
|
||||||
Reference in New Issue
Block a user