mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
9 lines
149 B
Plaintext
9 lines
149 B
Plaintext
class Foo {
|
|
bar=(value) { IO.print("set") }
|
|
bar { IO.print("get") }
|
|
}
|
|
|
|
var foo = new Foo
|
|
foo.bar = "value" // expect: set
|
|
foo.bar // expect: get
|