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.
6 lines
694 B
Text
6 lines
694 B
Text
331.lean:6:9-6:10: error(lean.inferBinderTypeFailed): Failed to infer type of binder `x`
|
|
|
|
Note: Because this declaration's type has been explicitly provided, all parameter types and holes (e.g., `_`) in its header are resolved before its body is processed; information from the declaration body cannot be used to infer what these values should be
|
|
331.lean:7:9-7:10: error(lean.inferBinderTypeFailed): Failed to infer type of binder `x`
|
|
|
|
Note: Because this declaration's type has been explicitly provided, all parameter types and holes (e.g., `_`) in its header are resolved before its body is processed; information from the declaration body cannot be used to infer what these values should be
|