Files
wren/test/implicit_receiver/static_methods.wren

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