From: Jérémie Astor Date: Mon, 25 May 2020 13:36:18 +0000 (+0200) Subject: :art: Union needs tuple_contains X-Git-Tag: nightly~1514 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=4d8ed0aa6be9edf6591a96861754ea6a7dbf0582;p=gwion.git :art: Union needs tuple_contains --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 445a8b55..e260a9a0 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -211,6 +211,7 @@ ANN static Type union_type(const Env env, const Symbol s, const m_bool add) { t->e->owner = t->nspc->parent = env->curr; t->e->owner_class = env->class_def; t->e->parent = env->gwion->type[et_union]; + t->e->tuple = new_tupleform(env->gwion->mp, NULL); add_type(env, env->curr, t); if(add) mk_class(env, t);