Avatar
Avatar
omochimetaru
@swift-main func foo(a: Int..., b: Bool, c: Int...) {} func foo() -> (Int..., Bool, Int...) -> Void { return { (a: Int..., b: Bool, c: Int...) in } }
swiftNightly BOT 11/20/2022 11:03 PM
exit status: 1 with stderr:<stdin>:3:33: error: only a single element can be variadic func foo() -> (Int..., Bool, Int...) -> Void { ~~~ ^~~ <stdin>:4:26: error: no parameters may follow a variadic parameter in a closure return { (a: Int..., b: Bool, c: Int...) in } ^