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 6324124 commit 0b3e657Copy full SHA for 0b3e657
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -464,14 +464,12 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
464
isSubType(tp1.resType, tp2.resType.subst(tp2, tp1))
465
finally comparedTypeLambdas = saved
466
case _ =>
467
- if (!tp1.isHK) {
468
- tp2 match {
469
- case EtaExpansion(tycon2) if tycon2.symbol.isClass =>
470
- return isSubType(tp1, tycon2)
471
- case _ =>
472
- }
+ tp2 match {
+ case EtaExpansion(tycon2) =>
+ isSubType(tp1, tycon2)
+ case _ =>
+ fourthTry(tp1, tp2)
473
}
474
- fourthTry(tp1, tp2)
475
476
compareTypeLambda
477
case OrType(tp21, tp22) =>
0 commit comments