From 847fc76879e30d5460f9f607c8bcf9cfe4fcf13e Mon Sep 17 00:00:00 2001 From: shove70 Date: Wed, 16 Aug 2023 14:19:53 +0800 Subject: [PATCH] checker: fix an inappropriate variable name --- vlib/v/checker/fn.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/checker/fn.v b/vlib/v/checker/fn.v index 1bac94bd69b0e1..c348705aeebef4 100644 --- a/vlib/v/checker/fn.v +++ b/vlib/v/checker/fn.v @@ -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