☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
invalid-function-call.txtar
☽
☼
lang/interpret_test/TestAstFunc2/invalid-function-call.txtar
code
plain
raw
GPL-3.0
(C) 2013-2024, James Shubin and the project contributors
debian/copyright
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