Skip to content

Instantly share code, notes, and snippets.

@kateinoigakukun
Created January 8, 2017 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kateinoigakukun/9d54084327231ec8a6cd75c8e0e4fc0b to your computer and use it in GitHub Desktop.
Save kateinoigakukun/9d54084327231ec8a6cd75c8e0e4fc0b to your computer and use it in GitHub Desktop.
複数の制約を&で繋げる #CodePiece
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