Debian Codegraph @

lang/interpret_test/TestAstFunc2/specific-simple-scoped-lambda.txtar

raw
1 -- main.mcl --
2 $funcgen = func() {
3 func($b) {
4 "hello world"
5 }
6 }
7
8 # specify the type, to make sure we don't have a unification bug here
9 $fn func(bool) str = $funcgen()
10 $out = $fn(true)
11
12 test "${out}" {}
13 -- OUTPUT --
14 Vertex: test[hello world]