mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
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
|