Can I pattern match a `Pair<T, T>` (or tuple...
# announcements
i
Can I pattern match a
Pair<T, T>
(or tuple in general), whose elements are case classes? (I need to pattern match the subtypes of the sealed class)
s
if by
case class
you mean sealed classes and overall you mean you want the compiler to be able to check potentially complex when statements that contained sealed types to make sure they’re exhaustive, then no, I don’t think so
i
k, thanks