Created
January 8, 2017 10:01
-
-
Save kateinoigakukun/9d54084327231ec8a6cd75c8e0e4fc0b to your computer and use it in GitHub Desktop.
複数の制約を&で繋げる #CodePiece
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
class MyClass<Item: CustomStringConvertible & Equatable> { | |
var item: Item | |
init(value: Item) { | |
self.item = value | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment