mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
12 lines
149 B
Plaintext
12 lines
149 B
Plaintext
class Foo {
|
|
construct new() {
|
|
method { "block" }
|
|
}
|
|
|
|
method(a) {
|
|
System.print("method %(a())")
|
|
}
|
|
}
|
|
|
|
Foo.new() // expect: method block
|