mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
14 lines
243 B
Plaintext
14 lines
243 B
Plaintext
class Foo {
|
|
bar {
|
|
var a = "a"
|
|
IO.print(a) // expect: a
|
|
var b = a + " b"
|
|
IO.print(b) // expect: a b
|
|
var c = a + " c"
|
|
IO.print(c) // expect: a c
|
|
var d = b + " d"
|
|
IO.print(d) // expect: a b d
|
|
}
|
|
}
|
|
|
|
(new Foo).bar |