From 2e22e22674744e3206b730d097b45ccaab5280bf Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 20 Dec 2022 12:02:31 +0100 Subject: [PATCH] :bug: mark unions as union in typedefs --- src/parse/scan0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.43.0