From: Jérémie Astor Date: Thu, 29 Apr 2021 15:42:07 +0000 (+0200) Subject: :bug: More on effects X-Git-Tag: nightly~707 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=83ab80bf9ee319e403d695f7b0bf2eca17e31d60;p=gwion.git :bug: More on effects --- 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))