Skip to content

Commit 06e2bc5

Browse files
authored
checker: fix an inappropriate variable name (#19148)
1 parent 815439a commit 06e2bc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vlib/v/checker/fn.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,8 @@ fn (mut c Checker) call_expr(mut node ast.CallExpr) ast.Type {
499499
}
500500
}
501501
// If the left expr has an or_block, it needs to be checked for legal or_block statement.
502-
return_type := c.expr(mut node.left)
503-
c.check_expr_opt_call(node.left, return_type)
502+
left_type := c.expr(mut node.left)
503+
c.check_expr_opt_call(node.left, left_type)
504504
// TODO merge logic from method_call and fn_call
505505
// First check everything that applies to both fns and methods
506506
old_inside_fn_arg := c.inside_fn_arg

0 commit comments

Comments
 (0)