Debian Codegraph @

lang/interpret_test/TestAstFunc2/structlookup3.txtar

raw
1 -- main.mcl --
2 import "fmt"
3
4 $st = struct{
5 field1 => "value1",
6 field2 => "value2",
7 }
8
9 class test_struct_lookup($v1, $v2) {
10 test "test-${v1}-${v2}" {}
11 }
12
13 include test_struct_lookup($st->field1, $st->field2)
14 -- OUTPUT --
15 Vertex: test[test-value1-value2]