]> Nishi Git Mirror - gwion.git/commitdiff
:art: Cannot extend undefined
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 14:15:17 +0000 (16:15 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 14:15:17 +0000 (16:15 +0200)
src/parse/check.c

index 2d0e3adeaa4ac0300690b09126d169f3c0c1ea95..be8cc42340a9271c435792c78131096676acc834 100644 (file)
@@ -1427,10 +1427,6 @@ ANN m_bool check_class_def(const Env env, const Class_Def cdef) {
 if(GET_FLAG(cdef->base.type, checked))return GW_OK;
   const Type type = cdef->base.type;
   SET_FLAG(type, check);
-  if(type->e->parent == env->gwion->type[et_undefined]) {
-    type->e->parent = check_td(env, cdef->base.ext);
-    return traverse_cdef(env, cdef);
-  }
   if(cdef->base.ext)
     CHECK_BB(cdef_parent(env, cdef))
   assert(type->e->parent);