Skip to content

Commit

Permalink
checker: fix an inappropriate variable name (#19148)
Browse files Browse the repository at this point in the history
  • Loading branch information
shove70 committed Aug 16, 2023
1 parent 815439a commit 06e2bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/v/checker/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ fn (mut c Checker) call_expr(mut node ast.CallExpr) ast.Type {
}
}
// If the left expr has an or_block, it needs to be checked for legal or_block statement.
return_type := c.expr(mut node.left)
c.check_expr_opt_call(node.left, return_type)
left_type := c.expr(mut node.left)
c.check_expr_opt_call(node.left, left_type)
// TODO merge logic from method_call and fn_call
// First check everything that applies to both fns and methods
old_inside_fn_arg := c.inside_fn_arg
Expand Down

0 comments on commit 06e2bc5

Please sign in to comment.