mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-13 23:28:53 +01:00
22 lines
313 B
Plaintext
22 lines
313 B
Plaintext
class Foo {
|
|
static getter {
|
|
IO.print("getter")
|
|
}
|
|
|
|
static setter=(value) {
|
|
IO.print("setter")
|
|
}
|
|
|
|
static method(a) {
|
|
IO.print("method")
|
|
}
|
|
|
|
static test {
|
|
getter // expect: getter
|
|
setter = "value" // expect: setter
|
|
method("arg") // expect: method
|
|
}
|
|
}
|
|
|
|
Foo.test
|