checkpoint before FC

This commit is contained in:
2024-08-05 21:25:10 -07:00
parent 09227e444a
commit f5b1998afb
4 changed files with 10 additions and 3 deletions

View File

@@ -210,6 +210,11 @@ checkAlt scty ctx ty (MkAlt ptm body) = do
let var = VVar (length ctx.env) [<]
let ctx' = extend ctx nm a
Lam nm <$> go !(b $$ var) t ctx'
go (VPi str Implicit a b) (RApp t (RSrcPos _ (RVar nm)) Implicit) ctx = do
debug "*** \{nm} : \{show a}"
let var = VVar (length ctx.env) [<]
let ctx' = extend ctx nm a
Lam nm <$> go !(b $$ var) t ctx'
go (VPi str Implicit a b) t ctx = do
let var = VVar (length ctx.env) [<]
let ctx' = extend ctx "_" a