From 71e4b206619948e271491fd09f414e23f4fc044e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 30 Aug 2021 20:14:12 +0200 Subject: [PATCH] :bug: fix overloading inheritance --- src/parse/scan2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.43.0