Files
wren/test/variable/local_in_middle_of_block.wren
T

14 lines
243 B
Plaintext
Raw Normal View History

2013-11-09 11:38:01 -08:00
class Foo {
bar {
var a = "a"
io.write(a) // expect: a
var b = a + " b"
io.write(b) // expect: a b
var c = a + " c"
io.write(c) // expect: a c
var d = b + " d"
io.write(d) // expect: a b d
}
}
(new Foo).bar