@@ -940,10 +940,13 @@ elab ist info emode opts fn tm
940940 elab' ina fc (PQuasiquote t goal)
941941 = do -- First extract the unquoted subterms, replacing them with fresh
942942 -- names in the quasiquoted term. Claim their reflections to be
943− -- of type TT.
943+ -- an inferred type (to support polytypic quasiquotes).
944944 (t, unq) <- extractUnquotes 0 t
945945 let unquoteNames = map fst unq
946− mapM_ (flip claim (Var tt)) unquoteNames
946+ mapM_ (\uqn -> do uqh <- getNameFrom (sMN 0 "uqh")
947+ claim uqh RType
948+ movelast uqh
949+ claim uqn (Var uqh)) unquoteNames
947950
948951
949952 -- Save the old state - we need a fresh proof state to avoid