This lets us get the more correct lowercase versions of type kinds in error messages. (These match what the user would type.)
6 lines
208 B
Plaintext
6 lines
208 B
Plaintext
-- main.mcl --
|
|
import "fmt"
|
|
test fmt.printf("%d%d", 42) {} # should not pass, missing second int
|
|
-- OUTPUT --
|
|
# err: errUnify: unify error with: call:fmt.printf(str("%d%d"), int(42)): type error: str != list
|