From: Jérémie Astor Date: Mon, 26 Jul 2021 11:33:11 +0000 (+0200) Subject: :bug: Fix ufcs related bug X-Git-Tag: nightly~513 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=779f2dce25166c119806d7b4e305429df5aa38a7;p=gwion.git :bug: Fix ufcs related bug --- diff --git a/src/lib/object_op.c b/src/lib/object_op.c index b7733607..d18eb2af 100644 --- a/src/lib/object_op.c +++ b/src/lib/object_op.c @@ -185,7 +185,7 @@ OP_CHECK(opck_object_dot) { if (!value) { const Value v = nspc_lookup_value1(env->curr, member->xid); if (v && member->is_call) { - if (is_func(env->gwion, v->type)) + if (is_func(env->gwion, v->type) && (!v->from->owner_class || isa(the_base, v->from->owner_class) > 0)) return v->type; if (is_class(env->gwion, v->type)) { const Type parent = actual_type(env->gwion, v->type);