From: fennecdjay Date: Tue, 6 Dec 2022 18:53:36 +0000 (+0100) Subject: :art: mark unions as compound (maybe a way towards unions as structs X-Git-Tag: nightly~207^2~68 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a2abd0756215486c23476f7cf6a82f84e614d6a8;p=gwion.git :art: mark unions as compound (maybe a way towards unions as structs --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 4b0f45ae..f84ea8b6 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -251,6 +251,7 @@ ANN static Type union_type(const Env env, const Symbol s, const loc_t loc) { add_type(env, env->curr, t); mk_class(env, t, loc); SET_FLAG(t, final); + set_tflag(t, tflag_compound); if (strncmp(t->name, "Option", 6)) SET_FLAG(t, abstract); return t; }