This lets us get the more correct lowercase versions of type kinds in error messages. (These match what the user would type.)
11 lines
245 B
Plaintext
11 lines
245 B
Plaintext
-- main.mcl --
|
|
$name = ["a", "bb", "ccc",]
|
|
test $name {}
|
|
test "test" {}
|
|
|
|
#Test["test"] -> Test[$name] # must pass
|
|
Test["test"] -> Test["${name}"] # must fail
|
|
|
|
-- OUTPUT --
|
|
# err: errUnify: unify error with: var(name): type error: str != list
|