Debian Codegraph @

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

raw
1 -- main.mcl --
2 class c1 {
3 $x = "world"
4 test "t1" {}
5 func f1($y) {
6 "hello" + $x
7 }
8 }
9 include c1 as i1
10
11 test [i1.f1("whatever"),] {}
12 -- OUTPUT --
13 Vertex: test[helloworld]
14 Vertex: test[t1]