From be9e75dfc2441c07ba7f64e161dba6111a5c2929 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 4 Oct 2019 14:47:12 +0200 Subject: [PATCH] :art: Add assert --- src/parse/scan0.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.43.0