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,10 @@
import "fmt"
# function expression
$notfn = 42
$x = $notfn(7)
print "msg" {
msg => fmt.printf("notfn: %d", $x),
}