mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
24 lines
349 B
Plaintext
24 lines
349 B
Plaintext
class Foo {
|
|
getter {
|
|
IO.print("getter")
|
|
}
|
|
|
|
setter=(value) {
|
|
IO.print("setter")
|
|
}
|
|
|
|
method(a) {
|
|
IO.print("method")
|
|
}
|
|
|
|
test {
|
|
getter // expect: getter
|
|
setter = "value" // expect: setter
|
|
method("arg") // expect: method
|
|
}
|
|
}
|
|
|
|
(new Foo).test
|
|
|
|
// TODO: Need to decide how these interact with globals.
|