mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-15 08:08:03 +01:00
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
9 lines
188 B
Plaintext
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
|