☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
class-include-as-import1.txtar
☽
☼
lang/interpret_test/TestAstFunc2/class-include-as-import1.txtar
code
plain
raw
GPL-3.0
(C) 2013-2024, James Shubin and the project contributors
debian/copyright
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)