mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
14 lines
257 B
Plaintext
14 lines
257 B
Plaintext
// Create a local scope for the 'then' expression.
|
|
var a = "out"
|
|
if (true) {
|
|
var a = "in"
|
|
}
|
|
IO.print(a) // expect: out
|
|
|
|
// Create a local scope for the 'else' expression.
|
|
var b = "out"
|
|
if (false) "dummy" else {
|
|
var b = "in"
|
|
}
|
|
IO.print(b) // expect: out
|