forked from Mirror/wren
Mainly to get rid of one top level directory. But this will also be useful when there are tests of the embedding API.
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
|