mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix generated name for unnamed fn args
This commit is contained in:
parent
e8c9f609a4
commit
6752fed9f2
@ -217,9 +217,9 @@ fn (p mut Parser) fn_args() ([]ast.Arg,bool) {
|
||||
is_mut: is_mut
|
||||
typ: arg_type
|
||||
}
|
||||
}
|
||||
arg_no++
|
||||
}
|
||||
}
|
||||
else {
|
||||
for p.tok.kind != .rpar {
|
||||
mut arg_names := [p.check_name()]
|
||||
|
Loading…
Reference in New Issue
Block a user