☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
class-include-as-lambda-scope1.txtar
☽
☼
lang/interpret_test/TestAstFunc2/class-include-as-lambda-scope1.txtar
code
plain
raw
GPL-3.0
(C) 2013-2024, James Shubin and the project contributors
debian/copyright
1
-- main.mcl --
2
class c1 {
3
$x = "world"
4
test "t1" {}
5
$f1 = func($y) {
6
"hello" + $x
7
}
8
}
9
include c1 as i1
10
11
$name = $i1.f1("whatever")
12
13
test "${name}" {}
14
-- OUTPUT --
15
Vertex: test[helloworld]
16
Vertex: test[t1]