]> Nishi Git Mirror - gwion.git/commitdiff
:art: emit_cdef only if def
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 15:30:15 +0000 (17:30 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 15:30:15 +0000 (17:30 +0200)
src/emit/emit.c

index eceb2877843986ad7a21a73d21c3b70e4f957892..d5d48eece1453426f13cf58cf99f637184e12fe8 100644 (file)
@@ -1898,7 +1898,7 @@ ANN static m_bool emit_class_def(const Emitter emit, const Class_Def cdef) {
 if(GET_FLAG(cdef->base.type, emit))return GW_OK;
   const Type type = cdef->base.type;
   const Nspc nspc = type->nspc;
-  if(cdef->base.ext && !GET_FLAG(cdef->base.type->e->parent, emit))
+  if(cdef->base.ext && cdef->base.type->e->parent->e->def && !GET_FLAG(cdef->base.type->e->parent, emit))
     CHECK_BB(cdef_parent(emit, cdef))
   SET_FLAG(type, emit);
   nspc_allocdata(emit->gwion->mp, nspc);