You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeA[X] = scala.Array[X]
(newA[A[String]](0) :Any) match {
case _ :A[A[AnyRef]] => println("yes")
case _ => println("no")
}
Problem
non-variable type argument AnyRef in type pattern Array[Test.A[AnyRef]] (the underlying of Test.A[Test.A[AnyRef]]) is unchecked since it is eliminated by erasure
case _ :A[A[AnyRef]] => println("yes")
Reproduction steps
Scala version: 2.13.16
Problem