]> Nishi Git Mirror - gwion.git/commitdiff
:art: Remove useless test
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 11:36:17 +0000 (13:36 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 11:36:17 +0000 (13:36 +0200)
src/parse/check.c

index 2bc73b25073d793078c42a49a438f5fa19e19bc9..2a1818df6a04b1e3ca4e2cc1aecd0ac73bad3e78 100644 (file)
@@ -1435,8 +1435,7 @@ ANN m_bool check_class_def(const Env env, const Class_Def cdef) {
   }
   if(cdef->base.ext)
     CHECK_BB(scanx_parent(cdef->base.type, check_class_parent, env))
-  else if(!type->e->parent)
-    type->e->parent = env->gwion->type[et_object];
+  assert(type->e->parent);
   inherit(type);
   if(cdef->body)
     CHECK_BB(env_body(env, cdef, check_section))