Debian Codegraph @

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

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