mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
21 lines
290 B
Plaintext
21 lines
290 B
Plaintext
class Foo {
|
|
bar=(value) {
|
|
IO.print("setter")
|
|
return value
|
|
}
|
|
|
|
test {
|
|
bar = "value" // expect: setter
|
|
|
|
{
|
|
bar = "value" // expect: setter
|
|
var bar = "local"
|
|
bar = "value" // no expectation
|
|
}
|
|
|
|
bar = "value" // expect: setter
|
|
}
|
|
}
|
|
|
|
(new Foo).test
|