Debian Codegraph @

lang/interpret_test/TestAstFunc2/func-shadowing2.txtar

raw
1 -- main.mcl --
2 $foo = "bad1"
3 $bar = func($foo) {
4 "hello " + $foo # shadows parent var
5 }
6 $name = $bar("world")
7 test "${name}" {}
8 -- OUTPUT --
9 Vertex: test[hello world]