-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ re #5744 ] Add some failing test cases
- Loading branch information
1 parent
501ed59
commit 2a6f9f7
Showing
8 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
open import Agda.Builtin.Reflection | ||
open import Agda.Builtin.Unit | ||
|
||
@0 A : Set₁ | ||
A = Set | ||
|
||
macro | ||
|
||
@0 m : Term → TC ⊤ | ||
m B = | ||
bindTC (quoteTC A) λ A → | ||
unify A B | ||
|
||
B : Set₁ | ||
B = m |
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 @@ | ||
ErasedMacro1.agda:15,5-6 | ||
Identifier A is declared erased, so it cannot be used here | ||
when inferring the type of 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,12 @@ | ||
open import Agda.Builtin.Reflection | ||
open import Agda.Builtin.Unit | ||
|
||
macro | ||
|
||
@0 m : @0 Set → Term → TC ⊤ | ||
m A B = | ||
bindTC (quoteTC A) λ A → | ||
unify A B | ||
|
||
F : @0 Set → Set | ||
F A = m 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 @@ | ||
ErasedMacro2.agda:12,7-10 | ||
Variable A is declared erased, so it cannot be used here | ||
when inferring the type of 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,12 @@ | ||
open import Agda.Builtin.Reflection | ||
open import Agda.Builtin.Unit | ||
|
||
macro | ||
|
||
@0 m : Set → Term → TC ⊤ | ||
m A B = | ||
bindTC (quoteTC A) λ A → | ||
unify A B | ||
|
||
F : @0 Set → Set | ||
F A = m 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 @@ | ||
ErasedMacro3.agda:12,7-10 | ||
Variable A is declared erased, so it cannot be used here | ||
when inferring the type of 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,19 @@ | ||
open import Agda.Builtin.List | ||
open import Agda.Builtin.Reflection | ||
open import Agda.Builtin.Sigma | ||
open import Agda.Builtin.Unit | ||
|
||
@0 m : Name → TC ⊤ | ||
m F = defineFun F | ||
(clause | ||
(( "A" | ||
, arg (arg-info visible (modality relevant quantity-0)) | ||
(agda-sort (lit 0))) ∷ | ||
[]) | ||
(arg (arg-info visible (modality relevant quantity-0)) (var 0) ∷ | ||
[]) | ||
(var 0 []) ∷ | ||
[]) | ||
|
||
F : @0 Set → Set | ||
unquoteDef F = m F |
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 @@ | ||
ErasedMacro4.agda:19,1-19 | ||
Variable A is declared erased, so it cannot be used here | ||
when checking that the expression A has type Set |