I have a case block that contains the following case blocks:
def method(...) = x match {
case xyz: (List[String], TypeA, TypeB) => ...
case abc: (TypeA, TypeB) => ...
}
For the above code, I get a warning non-variable type argument List[String] in type pattern (List[String], TypeA, TypeB) is unchecked since it is eliminated by erasure.
I understand that the compiler cannot see the difference between List[String] or List[Int] or List[T] in the case block, but how do I get rid of these warnings?