From: fennecdjay Date: Tue, 20 Dec 2022 11:02:31 +0000 (+0100) Subject: :bug: mark unions as union in typedefs X-Git-Tag: nightly~207^2~33 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2e22e22674744e3206b730d097b45ccaab5280bf;p=gwion.git :bug: mark unions as union in typedefs --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index d2f2ab7d..466d4c20 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -141,7 +141,8 @@ ANN static void typedef_simple(const Env env, const Type_Def tdef, if (tdef->ext->array && !tdef->ext->array->exp) { set_tflag(t, tflag_empty); SET_FLAG(t, abstract); - } + } else if(tflag(base, tflag_union)) + set_tflag(t, tflag_union); } ANN static m_bool typedef_complex(const Env env, const Type_Def tdef,