mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
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.write(foo is Foo) // expect: true
|
|
IO.write(foo.toString) // expect: Foo
|