lang: Add more tests for function

This commit is contained in:
James Shubin
2019-07-20 22:27:21 -04:00
parent b3f15e1ddc
commit 3651ab5c0c
8 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
$foo = "bad1"
$bar = func($foo) {
"hello " + $foo # shadows parent var
}
test $bar("world") {}