Files
wren/test/assignment/associativity.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

10 lines
158 B
Plaintext

var a = "a"
var b = "b"
var c = "c"
// Assignment is right-associative.
a = b = c
IO.print(a) // expect: c
IO.print(b) // expect: c
IO.print(c) // expect: c