From: fennecdjay Date: Tue, 8 Oct 2019 11:36:17 +0000 (+0200) Subject: :art: Remove useless test X-Git-Tag: nightly~2198^2~104 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2e3ec8da234c5e8777edcc8fb8b673ddf566e1ce;p=gwion.git :art: Remove useless test --- diff --git a/src/parse/check.c b/src/parse/check.c index 2bc73b25..2a1818df 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -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))