Debian Codegraph @

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

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