From a2abd0756215486c23476f7cf6a82f84e614d6a8 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 6 Dec 2022 19:53:36 +0100 Subject: [PATCH] :art: mark unions as compound (maybe a way towards unions as structs --- src/parse/scan0.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.43.0