From: fennecdjay Date: Thu, 10 Oct 2019 14:15:17 +0000 (+0200) Subject: :art: Cannot extend undefined X-Git-Tag: nightly~2198^2~17 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ba5ff4ccf60607dcc232159f35e88db85ea23205;p=gwion.git :art: Cannot extend undefined --- 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);