From 1d5f0e7e2ded60fc2da3de41e47357bc659621cc Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 18 Nov 2022 12:16:19 +0100 Subject: [PATCH] :bug: Fix chick_rewrite --- src/parse/operator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/parse/operator.c b/src/parse/operator.c index 5cc642f1..d6c21521 100644 --- a/src/parse/operator.c +++ b/src/parse/operator.c @@ -307,12 +307,10 @@ ANN static Type chuck_rewrite(const Env env, const struct Op_Import *opi, const c[len - 2] = '\0'; const Exp bin = new_exp_binary(env->gwion->mp, lhs, insert_symbol(env->gwion->st, c), call, exp_self(base)->pos); base->lhs = bin; - const Symbol orig = base->op; base->op = insert_symbol(env->gwion->st, "=>"); const Type ret = check_exp(env, exp_self(base)); if(ret) return ret; env_set_error(env, false); - base->op = orig; env_warn(env, opi->pos, _("during rewriting operation")); env_set_error(env, true); return NULL; -- 2.43.0