From ba5ff4ccf60607dcc232159f35e88db85ea23205 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 16:15:17 +0200 Subject: [PATCH] :art: Cannot extend undefined --- src/parse/check.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 2d0e3ade..be8cc423 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -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); -- 2.43.0