From 779f2dce25166c119806d7b4e305429df5aa38a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 26 Jul 2021 13:33:11 +0200 Subject: [PATCH] :bug: Fix ufcs related bug --- src/lib/object_op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0