lang/interpret_test/TestAstFunc2/scope-ordering-dag6.txtar
raw| 1 | -- main.mcl -- |
| 2 | # test that ordering works and doesn't produce a dag in this tricky scenario |
| 3 | class bar($z) { |
| 4 | $zz = $z |
| 5 | } |
| 6 | class foo() { |
| 7 | include bar("hello") as x # bind to x |
| 8 | $y = $x.zz |
| 9 | test [$y + "a",] {} |
| 10 | } |
| 11 | include foo() as c |
| 12 | include bar($c.y) as x |
| 13 | test [$x.zz + "b",] {} |
| 14 | -- OUTPUT -- |
| 15 | Vertex: test[helloa] |
| 16 | Vertex: test[hellob] |