From 3e6ba59d3de897bc1d4bd4a6dfe7b3acca145020 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Thu, 10 Oct 2024 09:59:28 -0300 Subject: [PATCH] fix --- vlib/v/checker/infix.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/checker/infix.v b/vlib/v/checker/infix.v index c3a75233417914..1539a0be5ba192 100644 --- a/vlib/v/checker/infix.v +++ b/vlib/v/checker/infix.v @@ -355,7 +355,7 @@ fn (mut c Checker) infix_expr(mut node ast.InfixExpr) ast.Type { return_type = right_type } } else if right_final_sym.has_method_with_generic_parent(node.op.str()) { - if method := right_final_sym.find_method(node.op.str()) { + if method := right_final_sym.find_method_with_generic_parent(node.op.str()) { return_type = method.return_type } else { return_type = right_type @@ -367,7 +367,7 @@ fn (mut c Checker) infix_expr(mut node ast.InfixExpr) ast.Type { return_type = left_type } } else if left_final_sym.has_method_with_generic_parent(node.op.str()) { - if method := left_final_sym.find_method(node.op.str()) { + if method := left_final_sym.find_method_with_generic_parent(node.op.str()) { return_type = method.return_type } else { return_type = left_type