apfl/src/functional-tests/shadowing.at

22 lines
199 B
Text

===== script =====
foo := 1
bar := 1
({
foo = 2
bar := 2
print "Inside:"
print foo
print bar
})
print "Outside:"
print foo
print bar
===== output =====
Inside:
2
2
Outside:
2
1