From 2e3ec8da234c5e8777edcc8fb8b673ddf566e1ce Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 8 Oct 2019 13:36:17 +0200 Subject: [PATCH] :art: Remove useless test --- src/parse/check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)) -- 2.43.0