lean4-htt/tests/pkg/module/Module/ImportedPrivateImported.lean
jrr6 5f4e6a86d5
feat: update and explain "unknown constant" and "failed to infer type" errors (#9423)
This PR updates the formatting of, and adds explanations for, "unknown
identifier" errors as well as "failed to infer type" errors for binders
and definitions.

It attempts to ameliorate some of the confusion encountered in #1592 by
modifying the wording of the "header is elaborated before body is
processed" note and adding further discussion and examples of this
behavior in the corresponding error explanation.
2025-07-18 19:20:31 +00:00

10 lines
166 B
Text

module
prelude
public import Module.PrivateImported
/-! `private import` should not be transitive. -/
/-- error: Unknown identifier `f` -/
#guard_msgs in
#check f