From: fennecdjay Date: Wed, 9 Oct 2019 20:35:39 +0000 (+0200) Subject: :art: Siplify prim_id_non_res X-Git-Tag: nightly~2198^2~54 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c2251f05309dcdcadc24e8e87dc23649ea4ce84a;p=gwion.git :art: Siplify prim_id_non_res --- 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)