lean4-htt/src/Lean/ErrorExplanations.lean
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

12 lines
472 B
Text

/-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Rotella
-/
prelude
import Lean.ErrorExplanations.CtorResultingTypeMismatch
import Lean.ErrorExplanations.DependsOnNoncomputable
import Lean.ErrorExplanations.InductiveParamMismatch
import Lean.ErrorExplanations.InductiveParamMissing
import Lean.ErrorExplanations.InvalidDottedIdent
import Lean.ErrorExplanations.RedundantMatchAlt