Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrectly quoted sorts #7203

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/full/Agda/TypeChecking/Quote.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ quotingKit = do
quoteSort PiSort{} = pure unsupportedSort
quoteSort FunSort{} = pure unsupportedSort
quoteSort UnivSort{} = pure unsupportedSort
quoteSort (MetaS x es) = quoteTerm $ MetaV x es
quoteSort (DefS d es) = quoteTerm $ Def d es
quoteSort (MetaS x es) = pure unsupportedSort
quoteSort (DefS d es) = pure unsupportedSort
quoteSort (DummyS s) =__IMPOSSIBLE_VERBOSE__ s

quoteType :: Type -> ReduceM Term
Expand Down
14 changes: 14 additions & 0 deletions test/Succeed/Issue7187.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
open import Agda.Builtin.Reflection renaming (bindTC to _>>=_)
open import Agda.Builtin.Unit
open import Agda.Builtin.Nat
open import Agda.Builtin.List

macro
`Nat : Term → TC ⊤
`Nat hole = do
ty ← inferType hole
_ ← debugPrint "tactic" 10 (termErr ty ∷ [])
unify hole (def (quote Nat) [])

boom : `Nat
boom = 1