]> Nishi Git Mirror - gwion.git/commitdiff
:art: Siplify prim_id_non_res
authorfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 20:35:39 +0000 (22:35 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Wed, 9 Oct 2019 20:35:39 +0000 (22:35 +0200)
src/parse/check.c

index 516af5270616e54ec8f19ee7b28975541998d458..871ea16ffd44062c2fa8878127f0f226f613f402 100644 (file)
@@ -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)