This PR improves the type-as-hole error message. Type-as-hole error for theorem declarations should not admit the possibility of omitting the type entirely. --------- Co-authored-by: Joachim Breitner <mail@joachim-breitner.de>
6 lines
434 B
Text
6 lines
434 B
Text
331.lean:6:13-6:14: error: failed to infer binder type
|
|
|
|
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:13-7:14: error: failed to infer binder type
|
|
|
|
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
|