forked from agda/agda
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…expression
- Loading branch information
1 parent
cdd4e48
commit d1eccc3
Showing
3 changed files
with
24 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- Andreas, 2024-02-27, issue #7150. | ||
-- Reported as #7113 and testcase by buggymcbugfix. | ||
-- Regression in 2.6.4: instance search runs too late, | ||
-- making a rewrite fail. | ||
|
||
open import Agda.Builtin.Equality | ||
|
||
record Semiring : Set₁ where | ||
field | ||
Carrier : Set | ||
one : Carrier | ||
mul : Carrier → Carrier → Carrier | ||
left-unit : (r : Carrier) → mul one r ≡ r | ||
|
||
open Semiring {{...}} | ||
|
||
foo : {{R : Semiring}} (r : Carrier) → mul one r ≡ r | ||
foo r rewrite left-unit r = refl |