From c2251f05309dcdcadc24e8e87dc23649ea4ce84a Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 9 Oct 2019 22:35:39 +0200 Subject: [PATCH] :art: Siplify prim_id_non_res --- 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 516af527..871ea16f 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -258,10 +258,7 @@ ANN static Type prim_id_non_res(const Env env, const Exp_Primary* primary) { if(!v || !GET_FLAG(v, checked) || (v->from->ctx && v->from->ctx->error)) { env_err(env, exp_self(primary)->pos, _("variable %s not legit at this point."), s_name(primary->d.var)); - if(v && v->from->owner_class) - did_you_mean_type(v->from->owner_class, s_name(primary->d.var)); - else - did_you_mean_nspc(v ? v->from->owner : env->curr, s_name(primary->d.var)); + did_you_mean_nspc(v ? v->from->owner : env->curr, s_name(primary->d.var)); return NULL; } if(env->func && !GET_FLAG(v, const) && v->from->owner) -- 2.43.0