improved previous fix
authorceriel <none@none>
Mon, 5 Oct 1987 16:17:51 +0000 (16:17 +0000)
committerceriel <none@none>
Mon, 5 Oct 1987 16:17:51 +0000 (16:17 +0000)
lang/m2/comp/def.c

index be972ca..21ecfbd 100644 (file)
@@ -74,7 +74,7 @@ MkDef(id, scope, kind)
        df->df_kind = kind;
        df->df_next = id->id_def;
        id->id_def = df;
-       if (kind == D_ERROR) df->df_type = error_type;
+       if (kind == D_ERROR || kind == D_FORWARD) df->df_type = error_type;
 
        /* enter the definition in the list of definitions in this scope
        */