Skip to content

Commit

Permalink
🎨 Add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed Oct 4, 2019
1 parent be196ad commit be9e75d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parse/scan0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit be9e75d

Please sign in to comment.