From: fennecdjay Date: Fri, 4 Oct 2019 12:29:01 +0000 (+0200) Subject: :art: Improve nameless union naming X-Git-Tag: nightly~2198^2~146 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e577f4e0087a3501b54d590c3200ec7f1292c254;p=gwion.git :art: Improve nameless union naming --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 66afbc67..50109fa4 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -257,7 +257,7 @@ ANN m_bool scan0_union_def(const Env env, const Union_Def udef) { const Type t = union_type(env, nspc, sym, 1); udef->value = new_value(env->gwion->mp, t, s_name(sym)); valuefrom(env, udef->value->from); - nspc_add_value(nspc, udef->xid, udef->value); + nspc_add_value(nspc, sym, udef->value); add_type(env, nspc, t); SET_FLAG(udef->value, checked | udef->flag); SET_FLAG(t, scan1 | ae_flag_union);