Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Oct 10, 2024
1 parent 807a7ff commit 3e6ba59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/v/checker/infix.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3e6ba59

Please sign in to comment.