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.
5 lines
188 B
Text
5 lines
188 B
Text
346.lean:10:6-10:16: error(lean.unknownIdentifier): Unknown constant `SomeType.b`
|
|
346.lean:13:2-13:5: error: Invalid field `z`: The environment does not contain `Nat.z`
|
|
x
|
|
has type
|
|
Nat
|