Closed UlfNorell closed 3 months ago
Culprit is this (introduced in 9d6a6540aa4 by @jespercockx)
https://github.com/agda/agda/blob/d6e0844c2d686e5bc25c3edeeb9dd4aa92be0b3e/src/full/Agda/TypeChecking/Quote.hs#L182
which builds a Term
instead of a Sort
.
My proposed fix is to return unsupportedSort
instead. The alternative is to add a meta
constructor to reflected sorts.
We hit the impossible on line 462 in
Unquote.hs
trying to unquote (theTerm
)meta _13 []
as a sort. Meta 13 is the type of the hole we are trying to fill, and a sort meta.