Files
wren/test/variable/local_in_middle_of_block.wren
Bob Nystrom b979272305 Clean up text handling a bit:
- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00

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