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 778827e commit f97865aCopy full SHA for f97865a
src/dotty/tools/dotc/core/TypeComparer.scala
@@ -217,7 +217,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
217
isSubType(tp1, tp21) && isSubType(tp1, tp22)
218
case OrType(tp21, tp22) =>
219
if (tp21.stripTypeVar eq tp22.stripTypeVar) isSubType(tp1, tp21)
220
- else thirdTry(tp1, tp2)
+ else secondTry(tp1, tp2)
221
case TypeErasure.ErasedValueType(cls2, underlying2) =>
222
def compareErasedValueType = tp1 match {
223
case TypeErasure.ErasedValueType(cls1, underlying1) =>
0 commit comments