From: Jérémie Astor Date: Mon, 30 Aug 2021 18:14:12 +0000 (+0200) Subject: :bug: fix overloading inheritance X-Git-Tag: nightly~470^2~32 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=71e4b206619948e271491fd09f414e23f4fc044e;p=gwion.git :bug: fix overloading inheritance --- diff --git a/src/parse/scan2.c b/src/parse/scan2.c index 5279a382..f877bc92 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -519,7 +519,7 @@ ANN m_bool scan2_fdef(const Env env, const Func_Def fdef) { if (overload) CHECK_BB(scan2_func_def_overload(env, fdef, overload)); CHECK_BB((!tmpl_base(fdef->base->tmpl) ? scan2_fdef_std : scan2_fdef_tmpl)( env, fdef, overload)); - if (env->class_def) upfunction(env, fdef->base); + if (env->class_def && !fdef->base->func->next) upfunction(env, fdef->base); return GW_OK; }