lang/interpret_test/TestAstFunc2/simple-scope-ordering.txtar
raw| 1 | -- main.mcl -- |
| 2 | # set scope ordering test |
| 3 | if $foo { |
| 4 | $bar = true |
| 5 | test "a" {} |
| 6 | if $bar { |
| 7 | test "b" {} |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | if $bar { |
| 12 | $foo = false # shadowing! |
| 13 | test "c" {} |
| 14 | if $foo { |
| 15 | test "d" {} |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | $foo = true |
| 20 | $bar = false |
| 21 | -- OUTPUT -- |
| 22 | Vertex: test[a] |
| 23 | Vertex: test[b] |