checker: fix an inappropriate variable name (#19148)

This commit is contained in:
shove 2023-08-16 18:26:13 +08:00 committed by GitHub
parent 815439a381
commit 06e2bc5df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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