Debian Codegraph @

lang/interpret_test/TestAstFunc2/class-include-as-lambda-scope1.txtar

raw
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]