From: fennecdjay Date: Fri, 4 Oct 2019 12:47:12 +0000 (+0200) Subject: :art: Add assert X-Git-Tag: nightly~2198^2~141 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=be9e75dfc2441c07ba7f64e161dba6111a5c2929;p=gwion.git :art: Add assert --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index 50109fa4..0c85850f 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -264,6 +264,7 @@ ANN m_bool scan0_union_def(const Env env, const Union_Def udef) { } if(udef->tmpl) { if(tmpl_base(udef->tmpl)) { + assert(udef->type_xid); const Class_Def cdef = new_class_def(env->gwion->mp, udef->flag, udef->type_xid, NULL, (Class_Body)udef->l, loc_cpy(env->gwion->mp, udef->pos)); udef->type->e->def = cdef;