From: fennecdjay Date: Thu, 10 Oct 2019 11:33:39 +0000 (+0200) Subject: :art: Improve Stmt_Auto X-Git-Tag: nightly~2198^2~29 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ae733b8a420b511ad93f30516138280f4e91bd83;p=gwion.git :art: Improve Stmt_Auto --- diff --git a/src/parse/check.c b/src/parse/check.c index 871ea16f..4059ca86 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -1044,10 +1044,7 @@ ANN static m_bool do_stmt_auto(const Env env, const Stmt_Auto stmt) { td.array = &array; } ptr = known_type(env, &td); - assert(ptr); - if(!GET_FLAG(ptr, checked)) - CHECK_BB(check_class_def(env, ptr->e->def)) -// traverse_class_def(env, ptr->e->def); + assert(GET_FLAG(ptr, checked)); } t = depth ? array_type(env, ptr, depth) : ptr; stmt->v = new_value(env->gwion->mp, t, s_name(stmt->sym));