This PR improves the error messages produced by invalid projections and field notation. It also adds a hint to the "function expected" error message noting the argument to which the term is being applied, which can be helpful for debugging spurious "function expected" messages actually caused by syntax errors. --------- Co-authored-by: Joachim Breitner <mail@joachim-breitner.de>
16 lines
814 B
Text
16 lines
814 B
Text
emptyTypeAscription.lean:3:19-3:24: error(lean.invalidDottedIdent): Invalid dotted identifier notation: The expected type of `.zero` could not be determined
|
|
emptyTypeAscription.lean:4:29-4:34: error(lean.invalidDottedIdent): Invalid dotted identifier notation: The expected type of `.zero` could not be determined
|
|
emptyTypeAscription.lean:9:63-9:70: error: invalid `▸` notation, expected result type of cast is
|
|
w = add x y
|
|
however, the equality
|
|
h₁
|
|
of type
|
|
z = x + y
|
|
does not contain the expected result type on either the left or the right hand side
|
|
emptyTypeAscription.lean:10:55-10:62: error: invalid `▸` notation, expected result type of cast is
|
|
w = add x y
|
|
however, the equality
|
|
h₁
|
|
of type
|
|
z = x + y
|
|
does not contain the expected result type on either the left or the right hand side
|