From: fennecdjay Date: Thu, 5 Nov 2020 15:05:33 +0000 (+0100) Subject: :bug: Fix structs X-Git-Tag: nightly~1210 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1221340c98279101f7ad6f9dcd6ee83aea32ffc1;p=gwion.git :bug: Fix structs --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 3563e3e4..ce22bae9 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -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;