[swift-users] Variadic parameter in function type

Jin Wang owenwjowenwj at gmail.com
Mon Aug 29 00:19:34 CDT 2016


Hey guys,

Can anyone tell me how you handle the following scenario after SE-0111 <https://github.com/apple/swift-evolution/blob/master/proposals/0111-remove-arg-label-type-significance.md> gets implemented?

let output: (_ items: Any..., _ separator: String, _ terminator: String) -> Void = print
output("Apple", "Banana", ",", "\n”)
// Error: Missing argument for parameter #2 in call

Thanks,
Jin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160829/76780b9c/attachment.html>


More information about the swift-users mailing list