This adds an initial implementation of printing line numbers on type unification errors. It also attempts to print a visual position indicator for most scenarios. This patch was started by Felix Frank and finished by James Shubin. Co-authored-by: Felix Frank <Felix.Frank.de@gmail.com>
9 lines
181 B
Plaintext
9 lines
181 B
Plaintext
-- main.mcl --
|
|
$name = ["a", "bb", "ccc",]
|
|
|
|
#test $name {} # must pass
|
|
test "${name}" {} # must fail
|
|
|
|
-- OUTPUT --
|
|
# err: errUnify: type error: str != list: /main.mcl @ 4:1-4:17
|