-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ #5341 ] Context variables are no longer made non-erased.
By applyModalityToContext or applyQuantityToContext. Furthermore Agda.Interaction.BasicOps.typeInCurrent infers types in an erased context, so that one can infer the types of erased variables and definitions in goals that are not in an erased context. (Previously one could only do this for erased variables.)
- Loading branch information
Showing
6 changed files
with
43 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
postulate | ||
F : @0 Set → Set | ||
|
||
G : @0 Set → Set | ||
G A = F (λ { → A }) |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Issue4525d.agda:5,16-17 | ||
Variable A is declared erased, so it cannot be used here | ||
when checking that the expression A has type Set |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
postulate | ||
@0 A : Set | ||
|
||
_ : (@0 B : Set) .(C : Set) → Set | ||
_ = λ B C → ? |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
IOTCM currentFile NonInteractive Indirect (cmd_load_highlighting_info currentFile) | ||
goal_command 0 (cmd_infer Instantiated) "A" | ||
goal_command 0 (cmd_infer Instantiated) "B" | ||
goal_command 0 (cmd_infer Instantiated) "C" |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(agda2-status-action "") | ||
(agda2-status-action "") | ||
(agda2-info-action "*Type-checking*" "" nil) | ||
(agda2-highlight-clear) | ||
(agda2-status-action "") | ||
(agda2-info-action "*Inferred Type*" "Set" nil) | ||
(agda2-status-action "") | ||
(agda2-info-action "*Inferred Type*" "Set" nil) | ||
(agda2-status-action "") | ||
(agda2-info-action "*Inferred Type*" "Set" nil) |