lean4-htt/tests/lean/emptyTypeAscription.lean.expected.out
jrr6 7ed716f904
feat: improve projection and field-notation errors (#8986)
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>
2025-06-26 18:36:47 +00:00

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