This commit is contained in:
2026-04-03 20:36:40 -07:00
parent bfc9277f15
commit fd97d2167e
20 changed files with 1134 additions and 282 deletions

View File

@@ -1426,7 +1426,7 @@ updateRec ctx fc clauses arg ty = do
getTele Nothing (VPi _ _ _ _ a b) = do
a <- forceType ctx.env a
getTele (Just $ RVar fc "$ru") a
getTele Nothing v = error fc "Expected a pi type, got \{show v}"
getTele Nothing v = error fc "Expected \{show v}, missing argument to record update."
getTele (Just tm) v = error (getFC tm) "Expected a record type, got \{show v}"
infer : Context -> Raw -> M (Tm × Val)