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>
17 lines
273 B
Text
17 lines
273 B
Text
set_option pp.mvars false
|
||
|
||
class Foo (α : Type)
|
||
|
||
/--
|
||
error: Function expected at
|
||
Missing
|
||
but this term has type
|
||
?_
|
||
|
||
Note: Expected a function because this term is being applied to the argument
|
||
α
|
||
-/
|
||
#guard_msgs in
|
||
variable {α : Type} (s : Missing α)
|
||
|
||
#synth Foo s
|