-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #7177: only setScope when scope is not null
- Loading branch information
1 parent
fc866f9
commit a1764f6
Showing
6 changed files
with
77 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
-- Andreas, 2024-03-10, issue #7177 | ||
-- Correct scope when introducing underscores | ||
-- via pattern synonyms. | ||
|
||
open import Agda.Builtin.Bool | ||
open import Agda.Builtin.Equality | ||
|
||
data D : Set where | ||
c : { i : true ≡ false } → D | ||
|
||
pattern ff {i} = c {i} | ||
|
||
works : D | ||
works = c | ||
|
||
-- yellow: | ||
-- _i_6 : true ≡ false | ||
|
||
test : D | ||
test = ff | ||
|
||
-- yellow: | ||
-- _i_8 | ||
-- : Agda.Builtin.Bool.Bool.true Agda.Builtin.Equality.≡ | ||
-- Agda.Builtin.Bool.Bool.false | ||
|
||
-- No scope for underscore. | ||
|
||
-- Expected output: | ||
-- | ||
-- _i_6 : true ≡ false [ at ... ] | ||
-- _i_8 : true ≡ false [ at ... ] |
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,2 @@ | ||
top_command (cmd_load currentFile []) | ||
|
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,6 @@ | ||
(agda2-status-action "") | ||
(agda2-info-action "*Type-checking*" "" nil) | ||
(agda2-highlight-clear) | ||
(agda2-status-action "") | ||
(agda2-info-action "*All Goals*" "_i_6 : true ≡ false [ at Issue7177.agda:14,9-10 ] _i_8 : true ≡ false [ at Issue7177.agda:20,8-10 ] " nil) | ||
((last . 1) . (agda2-goals-action '())) |