Files
wren/test/language/constructor/default.wren
Bob Nystrom 64eccdd9be Reorganize tests and benchmark scripts.
Mainly to get rid of one top level directory. But this will
also be useful when there are tests of the embedding API.
2015-03-14 12:45:56 -07:00

9 lines
188 B
Plaintext

class Foo {
toString { "Foo" }
}
// Classes inherit the argument-less "new" one by default.
var foo = new Foo
IO.print(foo is Foo) // expect: true
IO.print(foo.toString) // expect: Foo