From 1de915cfeac57113b50d05bf297f763fb43adcc5 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 19:45:24 +0200 Subject: [PATCH] :art: Improve check_decl --- src/parse/check.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 39c31001..43b97164 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -167,12 +167,6 @@ ANN Type check_exp_decl(const Env env, const Exp_Decl* decl) { CHECK_BO(scan1_exp(env, exp_self(decl))) CHECK_BO(scan2_exp(env, exp_self(decl))) const Type t_auto = env->gwion->type[et_auto]; - if(is_class(env->gwion, decl->type)) { - Var_Decl_List list = decl->list; - do list->self->value->type = t_auto; - while((list = list->next)); - ((Exp_Decl*)decl)->type = t_auto; - } if(decl->type == t_auto) ERR_O(td_pos(decl->td), _("can't infer type.")); } -- 2.43.0