@@ -699,7 +699,7 @@ elabClause info opts (cnum, PClause fc fname lhs_in_as withs rhs_in_as wherebloc
699699 when (not (null defer)) $ logElab 1 $ "DEFERRED " ++
700700 show (map (\ (n, (_,_,t,_)) -> (n, t)) defer)
701701 def' <- checkDef fc (\n -> Elaborating "deferred type of " n Nothing) defer
702− let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
702+ let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False, True))) def'
703703 addDeferred def''
704704 mapM_ (\(n, _) -> addIBC (IBCDef n)) def''
705705
@@ -862,7 +862,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
862862 sendHighlighting highlights
863863
864864 def' <- checkDef fc iderr defer
865− let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
865+ let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False, True))) def'
866866 addDeferred def''
867867 mapM_ (elabCaseBlock info opts) is
868868 logElab 5 ("Checked wval " ++ show wval')
@@ -927,7 +927,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
927927 addIBC (IBCStatic wname)
928928
929929 def' <- checkDef fc iderr [(wname, (-1, Nothing, wtype, []))]
930− let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
930+ let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False, True))) def'
931931 addDeferred def''
932932
933933 -- in the subdecls, lhs becomes:
@@ -968,7 +968,7 @@ elabClause info opts (_, PWith fc fname lhs_in withs wval_in pn_in withblock)
968968 sendHighlighting highlights
969969
970970 def' <- checkDef fc iderr defer
971− let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False))) def'
971+ let def'' = map (\(n, (i, top, t, ns)) -> (n, (i, top, t, ns, False, True))) def'
972972 addDeferred def''
973973 mapM_ (elabCaseBlock info opts) is
974974 logElab 5 ("Checked RHS " ++ show rhs')