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 e22dfcc commit 4d198ecCopy full SHA for 4d198ec
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -1148,7 +1148,7 @@ class TypeComparer(initctx: Context) extends ConstraintHandling[AbsentContext] {
1148
def matchAbstractTypeMember(info1: Type) = info1 match {
1149
case TypeBounds(lo, hi) if lo ne hi =>
1150
tp2.refinedInfo match {
1151
- case rinfo2: TypeBounds if tp1.widenExpr.isSingleton =>
+ case rinfo2: TypeBounds if tp1.isStable =>
1152
val ref1 = tp1.widenExpr.select(name)
1153
isSubType(rinfo2.lo, ref1) && isSubType(ref1, rinfo2.hi)
1154
case _ =>
0 commit comments