forked from Mirror/wren
9 lines
195 B
Plaintext
9 lines
195 B
Plaintext
class Foo {
|
|
toString { return "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
|