Is there a way to associate a tuple to a enum?
For example:
typealias MyTuple = (Int, String)
enum A: MyTuple {
case .Foo = (1, "Bazz")
}
I get the error 'A does not conform RawRepresentable'
Is there a way to associate a tuple to a enum?
For example:
typealias MyTuple = (Int, String)
enum A: MyTuple {
case .Foo = (1, "Bazz")
}
I get the error 'A does not conform RawRepresentable'