parser: fix generated name for unnamed fn args
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