We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9700b1 commit d8139fcCopy full SHA for d8139fc
compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
@@ -356,11 +356,8 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
356
357
val map = new TypeMap {
358
def apply(tp: Type) = tp match {
359
- case tp @ AppliedType(tycon, args) if tycon.isRef(defn.ArrayClass) =>
360
- // walkaround `Array[_] <:< Array[Array[_]]`, see tests/patmat/t2425.scala
361
- tp.derivedAppliedType(tycon, args.map(mapOver))
362
case tref: TypeRef if isPatternTypeSymbol(tref.typeSymbol) =>
363
- WildcardType(tref.underlying.bounds)
+ tref.underlying.bounds
364
case _ => mapOver(tp)
365
}
366
0 commit comments