Files
wren/test/constructor/default.wren
2013-12-21 19:25:09 -08:00

9 lines
195 B
Plaintext

class Foo {
toString { return "Foo" }
}
// 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