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>
9 lines
270 B
Text
9 lines
270 B
Text
3989_2.lean:6:0: error: expected else-alternative for `match_expr`, i.e., `| _ => ...`
|
|
3989_2.lean:1:22-1:32: error: Function expected at
|
|
MetaM
|
|
but this term has type
|
|
?m
|
|
|
|
Note: Expected a function because this term is being applied to the argument
|
|
Expr
|
|
Nat : Type
|