Debian Codegraph @

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

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