@@ -79,7 +79,8 @@ buildType info syn fc opts n ty' = do
79 ds <- checkAddDef True False fc iderr defer
79 ds <- checkAddDef True False fc iderr defer
80 -- if the type is not complete, note that we'll need to infer
80 -- if the type is not complete, note that we'll need to infer
81 -- things later (for solving metavariables)
81 -- things later (for solving metavariables)
82+ when (length ds > length is) -- more deferred than case blocks
82− when (not (null ds)) $ addTyInferred n
83+ $ addTyInferred n
84 mapM_ (elabCaseBlock info opts) is
85 mapM_ (elabCaseBlock info opts) is
85 ctxt <- getContext
86 ctxt <- getContext