1
0
forked from Mirror/wren

Add another test for constructor syntax.

This commit is contained in:
Bob Nystrom
2013-12-19 09:10:45 -08:00
parent 4d67f2270a
commit f9099791a1

View File

@ -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").