Debian Codegraph @

lang/interpret_test/TestAstFunc1/graph12.txtar

raw
1 -- main.mcl --
2 # variable shadowing both
3 # this should be okay, because var is shadowed
4 $x = "hello"
5 if true {
6 $x = "world" # shadowed
7 test "t2" {
8 stringptr => $x,
9 }
10 }
11 test "t1" {
12 stringptr => $x,
13 }
14 -- OUTPUT --
15 Vertex: const
16 Vertex: const
17 Vertex: const
18 Vertex: const
19 Vertex: const