Created
April 6, 2015 05:37
-
-
Save jessesquires/6c312a66b175a4ec044f to your computer and use it in GitHub Desktop.
Swift generic constraints, conforming to a superclass and multiple protocols
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
protocol MyProtocol { | |
} | |
protocol MyOtherProtocol { | |
} | |
func configure <T: UIViewController where T: MyProtocol, T: MyOtherProtocol> (viewController: T) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment