@@ -642,11 +642,11 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
642642 }
643643
644644 // 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
646646 def childTypeMap (implicit ctx : Context ) = new AbstractTypeMap (maximize = false ) {
647647 def apply (t : Type ): Type = t.dealias match {
648648 // 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
650650 case tp @ ThisType (tref) if ! tref.symbol.isStaticOwner =>
651651 if (tref.symbol.is(Module )) this (tref)
652652 else newTypeVar(TypeBounds .upper(tp.underlying))
@@ -679,7 +679,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
679679
680680 // If parent contains a reference to an abstract type, then we should
681681 // 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,
683683 // we manually patch subtyping check instead of changing TypeComparer.
684684 // See tests/patmat/3645b.scala
685685 def parentQualify = tp1.widen.classSymbol.info.parents.exists { parent =>
0 commit comments