This PR improves the message and range of infer binder type failures. --------- Co-authored-by: Joseph Rotella <7482866+jrr6@users.noreply.github.com>
6 lines
446 B
Text
6 lines
446 B
Text
331.lean:6:9-6:10: error: Failed to infer type of binder `x`
|
|
|
|
Note: When the resulting type of a declaration is explicitly provided, all holes (e.g., `_`) in the header are resolved before the declaration body is processed
|
|
331.lean:7:9-7:10: error: Failed to infer type of binder `x`
|
|
|
|
Note: When the resulting type of a declaration is explicitly provided, all holes (e.g., `_`) in the header are resolved before the declaration body is processed
|