Skip to content

Commit

Permalink
gen: fixed rest elements in argument list
Browse files Browse the repository at this point in the history
  • Loading branch information
toman-tom committed Oct 11, 2024
1 parent 5071dca commit 1694cc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ func (g *GenVisitor) VisitParameterList(n *ast.ParameterList) {
g.out.WriteString(", ")
}
}

if n.Rest != nil {
g.out.WriteString("...")
g.gen(n.Rest)
}
g.out.WriteString(") ")
}

Expand Down

0 comments on commit 1694cc4

Please sign in to comment.