Created
May 24, 2016 16:00
-
-
Save humblehacker/639f8cb0dfd0b8f0c5124cd7477d7fc0 to your computer and use it in GitHub Desktop.
Variable declaration of concrete class and protocol conformance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIViewController<SomeProtocol> *vc = ...; | |
/** I wish I could do this in Swift. | |
let vc: UIViewController, SomeProtocol = ... | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Coming in Swift 4!