[SR-6030] Wildcard argument in closure doesn't match variadic arguments #48587
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: d85de9867b74906b89b8ac52301fe1b6
Issue Description:
I have a typealias which goes like this:
Which I use like this:
Works fine in Swift 1...2...3, but Swift 4 says:
So it looks like vararg signatures cannot be wild-carded. Which in turn sounds like a bug to me? :-)
Full code: https://github.com/NozeIO/Noze.io/blob/master/Sources/connect/Connect.swift#L87
The text was updated successfully, but these errors were encountered: