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>
6 lines
173 B
Plaintext
6 lines
173 B
Plaintext
-- main.mcl --
|
|
import "fmt"
|
|
test fmt.printf("%d%d", 42) {} # should not pass, missing second int
|
|
-- OUTPUT --
|
|
# err: errUnify: type error: str != list: /main.mcl @ 2:1-2:30
|