Debian Codegraph @

lang/interpret_test/TestAstFunc2/class-capture5.txtar

raw
1 -- main.mcl --
2 $x1 = "bad1"
3 class foo($x1, $x2) {
4 test ["t1: " + $x2,] {} # swapped
5 test ["t2: " + $x1,] {}
6 }
7 include foo($x2, "t1")
8 $x2 = "t2"
9 -- OUTPUT --
10 Vertex: test[t1: t1]
11 Vertex: test[t2: t2]