From db3d2e3fc293531639658bbff3c7a79d7bcff87d Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 7 Apr 2019 11:03:11 +0200 Subject: [PATCH] :art: individual union types --- src/parse/scan0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 9c0a273c..80a29406 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -95,6 +95,7 @@ ANN m_bool scan0_stmt_enum(const Env env, const Stmt_Enum stmt) { GWDEBUG_EXE ANN static Type union_type(const Env env, const Nspc nspc, const Symbol s, const m_bool add) { const m_str name = s_name(s); const Type t = type_copy(env->gwion->p, t_union); + t->xid = ++env->scope->type_xid; t->name = name; t->nspc = new_nspc(env->gwion->p, name); t->nspc->parent = nspc; -- 2.43.0