Skip to content

Commit f97865a

Browse files
committed
Fix typo in previous commit.
1 parent 778827e commit f97865a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
217217
isSubType(tp1, tp21) && isSubType(tp1, tp22)
218218
case OrType(tp21, tp22) =>
219219
if (tp21.stripTypeVar eq tp22.stripTypeVar) isSubType(tp1, tp21)
220-
else thirdTry(tp1, tp2)
220+
else secondTry(tp1, tp2)
221221
case TypeErasure.ErasedValueType(cls2, underlying2) =>
222222
def compareErasedValueType = tp1 match {
223223
case TypeErasure.ErasedValueType(cls1, underlying1) =>

0 commit comments

Comments
 (0)