parser: fix generated name for unnamed fn args

pull/4024/head
Joe Conigliaro 2020-03-14 20:24:45 +11:00
parent e8c9f609a4
commit 6752fed9f2
1 changed files with 1 additions and 1 deletions
vlib/v/parser

View File

@ -217,8 +217,8 @@ fn (p mut Parser) fn_args() ([]ast.Arg,bool) {
is_mut: is_mut is_mut: is_mut
typ: arg_type typ: arg_type
} }
arg_no++
} }
arg_no++
} }
else { else {
for p.tok.kind != .rpar { for p.tok.kind != .rpar {