[swift-users] #selector with Swift 3?
Brent Royal-Gordon
brent at architechies.com
Fri Jun 17 17:42:01 CDT 2016
> Tried that too, it causes another error:
>
> /Developer/SwiftNEC 3/SwiftNEC/CardViews.swift:139:28: Expected ':' after 'case'
Huh, that's really strange. This syntax, which should be equivalent, causes a compiler crash:
case (#selector(showRescale))?:
So does the slightly-more-shorthanded version:
case .some(#selector(showRescale)):
I'd file another bug about this, this time in the Swift open-source bug tracker at <https://bugs.swift.org>.
--
Brent Royal-Gordon
Architechies
More information about the swift-users
mailing list