]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix structs
authorfennecdjay <fennecdjay@gwion.tk>
Thu, 5 Nov 2020 15:05:33 +0000 (16:05 +0100)
committerfennecdjay <fennecdjay@gwion.tk>
Thu, 5 Nov 2020 15:05:33 +0000 (16:05 +0100)
src/parse/scan0.c

index 3563e3e4def00f3680db500b8126b2973f57c65a..ce22bae9f974155534a1149b9801d9a7697c8b3b 100644 (file)
@@ -336,10 +336,8 @@ ANN static Type scan0_class_def_init(const Env env, const Class_Def cdef) {
   if(parent == (Type)GW_ERROR)
     return NULL;
   const Type t = scan0_type(env, ++env->scope->type_xid, s_name(cdef->base.xid), parent);
-//  if(GET_FLAG(parent, abstract))
-//    SET_FLAG(t, abstract);
   if(cflag(cdef, cflag_struct))
-    t->flag |= tflag_struct;
+    set_tflag(t, tflag_struct);
   t->e->tuple = new_tupleform(env->gwion->mp, parent);
   t->e->owner = env->curr;
   t->e->owner_class = env->class_def;