We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc7ca99 commit 03b5a7cCopy full SHA for 03b5a7c
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -573,12 +573,6 @@ class TypeComparer(initctx: Context) extends ConstraintHandling[AbsentContext] {
573
}
574
compareTypeLambda
575
case OrType(tp21, tp22) =>
576
- val tp1a = tp1.widenDealiasKeepRefiningAnnots
577
- if (tp1a ne tp1)
578
- // Follow the alias; this might avoid truncating the search space in the either below
579
- // Note that it's safe to widen here because singleton types cannot be part of `|`.
580
- return recur(tp1a, tp2)
581
-
582
// Rewrite T1 <: (T211 & T212) | T22 to T1 <: (T211 | T22) and T1 <: (T212 | T22)
583
// and analogously for T1 <: T21 | (T221 & T222)
584
// `|' types to the right of <: are problematic, because
0 commit comments