@@ -417,14 +417,13 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
417
417
case Bind (_, pat) => project(pat)
418
418
case UnApply (fun, _, pats) =>
419
419
if (pat.tpe.classSymbol.is(CaseClass ))
420
- // FIXME: why dealias is needed here?
421
- Kon (pat.tpe.stripAnnots.dealias, pats.map(pat => project(pat)))
420
+ Kon (pat.tpe.stripAnnots, pats.map(pat => project(pat)))
422
421
else if (fun.symbol.owner == scalaSeqFactoryClass && fun.symbol.name == nme.unapplySeq)
423
422
projectList(pats)
424
423
else if (fun.symbol.info.resultType.isRef(scalaSomeClass))
425
- Kon (pat.tpe.stripAnnots.dealias , pats.map(pat => project(pat)))
424
+ Kon (pat.tpe.stripAnnots, pats.map(pat => project(pat)))
426
425
else
427
- Fun (pat.tpe.stripAnnots.dealias , fun.tpe, pats.map(pat => project(pat)))
426
+ Fun (pat.tpe.stripAnnots, fun.tpe, pats.map(pat => project(pat)))
428
427
case Typed (pat @ UnApply (_, _, _), _) => project(pat)
429
428
case Typed (expr, _) => Typ (expr.tpe.stripAnnots, true )
430
429
case _ =>
@@ -470,7 +469,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
470
469
/** Is `tp1` a subtype of `tp2`? */
471
470
def isSubType (tp1 : Type , tp2 : Type ): Boolean = {
472
471
// check SI-9657 and tests/patmat/gadt.scala
473
- val res = erase( tp1) <:< erase(tp2)
472
+ val res = tp1 <:< erase(tp2)
474
473
debug.println(s " ${tp1.show} <:< ${tp2.show} = $res" )
475
474
res
476
475
}
0 commit comments