From 83ab80bf9ee319e403d695f7b0bf2eca17e31d60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 29 Apr 2021 17:42:07 +0200 Subject: [PATCH] :bug: More on effects --- 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 e2fc0ce5..00201261 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -1493,7 +1493,7 @@ ANN m_bool check_func_def(const Env env, const Func_Def f) { env->func = former; if(ret > 0) { set_fflag(fdef->base->func, fflag_valid); - if(env->class_def && !check_effect_overload(&fdef->base->effects, override->d.func_ref)) + if(env->class_def && fdef->base->effects.ptr && !check_effect_overload(&fdef->base->effects, override->d.func_ref)) ERR_B(fdef->base->pos, _("too much effects in override."), s_name(fdef->base->xid)) -- 2.43.0