From ae733b8a420b511ad93f30516138280f4e91bd83 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 13:33:39 +0200 Subject: [PATCH] :art: Improve Stmt_Auto --- src/parse/check.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)); -- 2.43.0