From 1221340c98279101f7ad6f9dcd6ee83aea32ffc1 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 5 Nov 2020 16:05:33 +0100 Subject: [PATCH] :bug: Fix structs --- src/parse/scan0.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.43.0