forked from leanprover/lean4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: produces an error if the declaration body contains a universe p…
…arameter that does not occur in the declaration type nor is explicitly provided closes leanprover#898
- Loading branch information
1 parent
484e510
commit 8649483
Showing
4 changed files
with
75 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
holeErrors.lean:3:7-3:12: error: failed to infer definition type | ||
holeErrors.lean:3:10-3:12: error: don't know how to synthesize implicit argument | ||
holeErrors.lean:3:11-3:20: error: failed to infer definition type | ||
holeErrors.lean:3:14-3:20: error: don't know how to synthesize implicit argument | ||
@id ?m | ||
context: | ||
⊢ Sort u_1 | ||
⊢ Sort u | ||
holeErrors.lean:5:9-5:10: error: failed to infer definition type | ||
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 | ||
holeErrors.lean:8:9-8:11: error: don't know how to synthesize implicit argument | ||
holeErrors.lean:8:4-8:5: error: failed to infer 'let' declaration type | ||
holeErrors.lean:8:9-8:15: error: don't know how to synthesize implicit argument | ||
@id ?m | ||
context: | ||
⊢ Sort u_1 | ||
holeErrors.lean:8:4-8:5: error: failed to infer 'let' declaration type | ||
holeErrors.lean:7:7-9:1: error: failed to infer definition type | ||
⊢ Sort u | ||
holeErrors.lean:7:11-9:1: error: failed to infer definition type | ||
holeErrors.lean:11:11-11:15: error: failed to infer definition type | ||
holeErrors.lean:11:8-11:9: error: failed to infer binder type | ||
holeErrors.lean:13:12-13:13: error: failed to infer binder type | ||
holeErrors.lean:13:15-13:19: error: failed to infer definition type | ||
holeErrors.lean:16:4-16:5: error: failed to infer binder type | ||
holeErrors.lean:15:7-16:10: error: failed to infer definition type | ||
holeErrors.lean:19:13-19:15: error: don't know how to synthesize implicit argument | ||
holeErrors.lean:19:13-19:19: error: don't know how to synthesize implicit argument | ||
@id ?m | ||
context: | ||
⊢ Sort u_1 | ||
⊢ Sort u | ||
holeErrors.lean:19:8-19:9: error: failed to infer 'let rec' declaration type |