From 1f3a539f0f3109c9519c4040cf9b4362d2391fc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 9 May 2020 21:24:05 +0200 Subject: [PATCH] :bug: Fix template match scoping --- src/parse/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse/check.c b/src/parse/check.c index 1d6131fb..39ad0f93 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -569,7 +569,7 @@ ANN static Func _find_template_match(const Env env, const Value v, const Exp_Cal } free_mstr(env->gwion->mp, tmpl_name); if(es.run) - envset_pop(&es, v->from->owner_class->e->owner_class); + envset_pop(&es, v->from->owner_class); env_pop(env, scope); env->func = former; return m_func; -- 2.43.0