From 6752fed9f2a4faab843f9029bcbece409cf7e682 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Sat, 14 Mar 2020 20:24:45 +1100 Subject: [PATCH] parser: fix generated name for unnamed fn args --- vlib/v/parser/fn.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/parser/fn.v b/vlib/v/parser/fn.v index 23ebf97786..6ae198ef4e 100644 --- a/vlib/v/parser/fn.v +++ b/vlib/v/parser/fn.v @@ -217,8 +217,8 @@ fn (p mut Parser) fn_args() ([]ast.Arg,bool) { is_mut: is_mut typ: arg_type } + arg_no++ } - arg_no++ } else { for p.tok.kind != .rpar {