forked from Mirror/wren
Add another test for constructor syntax.
This commit is contained in:
7
test/constructor/infix_class_expression.wren
Normal file
7
test/constructor/infix_class_expression.wren
Normal 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").
|
||||
Reference in New Issue
Block a user