File tree 1 file changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1954,12 +1954,11 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
1954
1954
val info1 = m.info.widenExpr
1955
1955
isSubInfo(info1, tp2.refinedInfo.widenExpr, m.symbol.info.orElse(info1))
1956
1956
|| matchAbstractTypeMember(m.info)
1957
+ || (tp1.isStable && isSubType(TermRef (tp1, m.symbol), tp2.refinedInfo))
1957
1958
1958
- def memberQualifies = tp1.member(name) match // inlined hasAltWith for performance
1959
+ tp1.member(name) match // inlined hasAltWith for performance
1959
1960
case mbr : SingleDenotation => qualifies(mbr)
1960
1961
case mbr => mbr hasAltWith qualifies
1961
-
1962
- memberQualifies || (tp1.isStable && isSub(TermRef (tp1, name), tp2.refinedInfo))
1963
1962
}
1964
1963
1965
1964
final def ensureStableSingleton (tp : Type ): SingletonType = tp.stripTypeVar match {
You can’t perform that action at this time.
0 commit comments