Debian Codegraph @

lang/interpret_test/TestAstFunc2/class-include-as-duplicate1.txtar

raw
1 -- main.mcl --
2 class c1($s) {
3 $x = "got: ${s}"
4 }
5
6 # TODO: can this be allowed?
7 include c1("hey") as i1
8 include c1("hey") as i1
9 test "${i1.x}" {}
10 -- OUTPUT --
11 # err: errSetScope: could not generate ordering: duplicate assignment to `scoped:i1`, have: include(c1)