Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ re #3289 ] Postfix projections shouldn't have hiding information
- Loading branch information
1 parent
9936aeb
commit 94b9736
Showing
10 changed files
with
56 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
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,16 @@ | ||
open import Agda.Builtin.Nat | ||
|
||
record R : Set where | ||
field | ||
x : Nat | ||
|
||
open R {{...}} | ||
|
||
f₁ : R | ||
|
||
-- This is fine. | ||
x ⦃ f₁ ⦄ = 0 | ||
|
||
-- THIS WORKS BUT MAKES NO SENSE!!! | ||
_ : Nat | ||
_ = f₁ {{ .x }} |
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 @@ | ||
Issue3289-rhs.agda:16,5-7 | ||
R should be a function type, but it isn't | ||
when checking that ⦃ .x ⦄ is a valid argument to a function of type | ||
R |
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,15 @@ | ||
open import Agda.Builtin.Nat | ||
|
||
record R : Set where | ||
field | ||
x : Nat | ||
|
||
open R {{...}} | ||
|
||
f₁ f₂ : R | ||
|
||
-- This is fine. | ||
x ⦃ f₁ ⦄ = 0 | ||
|
||
-- THIS WORKS BUT MAKES NO SENSE!!! | ||
f₂ ⦃ .x ⦄ = 0 |
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 @@ | ||
Issue3289.agda:15,6-8 | ||
Cannot eliminate type R with projection pattern ⦃ .x ⦄ | ||
when checking that the clause f₂ ⦃ .x ⦄ = 0 has type R |