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>
24 lines
400 B
Text
24 lines
400 B
Text
/--
|
|
error: Invalid projection: Type of
|
|
x✝
|
|
is not known; cannot resolve projection `1`
|
|
---
|
|
error: unsolved goals
|
|
case refine'_1
|
|
⊢ Sort ?u.8
|
|
|
|
case refine'_2
|
|
⊢ Sort ?u.7
|
|
|
|
case refine'_3
|
|
⊢ ?refine'_1
|
|
|
|
case refine'_4
|
|
⊢ ?refine'_1
|
|
|
|
case refine'_5
|
|
⊢ ¬(fun x => ?m.16) ?refine'_3 = (fun x => ?m.16) ?refine'_4
|
|
-/
|
|
#guard_msgs in
|
|
example : False := by
|
|
refine' absurd (congrArg (·.1) sorry) _
|