Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
typealias MyOwnType = (value: String, target: GroupProtocol)
...
struct CommonLogic<T: GroupProtocol> where T.RawValue == String {
...
var myOwnValue: MyOwnType?
func getMyOwnValue()-> MyOwnType? {
...
}
}
// ERROR : Protocol 'UnitProtocol' can only be used as a generic constraint because it has Self or associated type requirements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment