We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 815439a commit 06e2bc5Copy full SHA for 06e2bc5
vlib/v/checker/fn.v
@@ -499,8 +499,8 @@ fn (mut c Checker) call_expr(mut node ast.CallExpr) ast.Type {
499
}
500
501
// 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)
+ left_type := c.expr(mut node.left)
+ c.check_expr_opt_call(node.left, left_type)
504
// TODO merge logic from method_call and fn_call
505
// First check everything that applies to both fns and methods
506
old_inside_fn_arg := c.inside_fn_arg
0 commit comments