Files
wren/test/constructor/infix_class_expression.wren
T

8 lines
172 B
Plaintext
Raw Normal View History

2013-12-19 09:10:45 -08:00
class Foo {
+(other) { "Foo " + other }
2013-12-19 09:10:45 -08:00
}
2014-01-05 12:27:12 -08:00
IO.print(new Foo + "value") // expect: Foo value
2013-12-19 09:10:45 -08:00
// TODO: Other expressions following a constructor, like new Foo.bar("arg").