@@ -642,11 +642,11 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
642
642
}
643
643
644
644
// We are checking the possibility of `tp1 <:< tp2`, thus we should
645
- // minimize `tp1` while maximize `tp2`. See tests/patmat/3645b.scala
645
+ // minimize `tp1` while maximizing `tp2`. See tests/patmat/3645b.scala
646
646
def childTypeMap (implicit ctx : Context ) = new AbstractTypeMap (maximize = false ) {
647
647
def apply (t : Type ): Type = t.dealias match {
648
648
// map `ThisType` of `tp1` to a type variable
649
- // precondition: `tp1` should have the shape `path.Child`, thus `ThisType` is always covariant
649
+ // precondition: `tp1` should have the same shape as `path.Child`, thus `ThisType` is always covariant
650
650
case tp @ ThisType (tref) if ! tref.symbol.isStaticOwner =>
651
651
if (tref.symbol.is(Module )) this (tref)
652
652
else newTypeVar(TypeBounds .upper(tp.underlying))
@@ -679,7 +679,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
679
679
680
680
// If parent contains a reference to an abstract type, then we should
681
681
// refine subtype checking to eliminate abstract types according to
682
- // variance. As this logic is only needed in exhaustivity check, thus
682
+ // variance. As this logic is only needed in exhaustivity check,
683
683
// we manually patch subtyping check instead of changing TypeComparer.
684
684
// See tests/patmat/3645b.scala
685
685
def parentQualify = tp1.widen.classSymbol.info.parents.exists { parent =>
0 commit comments