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