Debian Codegraph @

lang/interpret_test/TestAstFunc2/scope-ordering-dag1.txtar

raw
1 -- main.mcl --
2 # test that ordering works and doesn't produce a dag in this tricky scenario
3 class foo() {
4 $x = "hello"
5 $y = $x
6 test [$y + "a",] {}
7 }
8 include foo() as c
9 $x = $c.y
10 test [$x + "b",] {}
11 -- OUTPUT --
12 Vertex: test[helloa]
13 Vertex: test[hellob]