Debian Codegraph @

lang/interpret_test/TestAstFunc2/invalid-function-call.txtar

raw
1 -- main.mcl --
2 import "fmt"
3
4 # function expression
5 $notfn = 42
6
7 $x = $notfn(7)
8
9 print "msg" {
10 msg => fmt.printf("notfn: %d", $x),
11 }
12 -- OUTPUT --
13 # err: errUnify: unify error with: topLevel(singleton(int(42))): type error: func != int