This lets us get the more correct lowercase versions of type kinds in error messages. (These match what the user would type.)
14 lines
235 B
Plaintext
14 lines
235 B
Plaintext
-- main.mcl --
|
|
import "fmt"
|
|
|
|
# function expression
|
|
$notfn = 42
|
|
|
|
$x = $notfn(7)
|
|
|
|
print "msg" {
|
|
msg => fmt.printf("notfn: %d", $x),
|
|
}
|
|
-- OUTPUT --
|
|
# err: errUnify: unify error with: topLevel(singleton(int(42))): type error: func != int
|