Skip to content

Commit 2e159c3

Browse files
committed
Removed unnecessary (and restrictive) case for AppliedTermRefs in fourthTry() of TypeComparer.
1 parent e49b214 commit 2e159c3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,6 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
603603
}
604604
case tp1 @ AppliedType(tycon1, args1) =>
605605
compareAppliedType1(tp1, tycon1, args1)
606-
case tp1: AppliedTermRef =>
607-
isSubType(tp1.resType, tp2)
608606
case tp1: SingletonType =>
609607
/** if `tp2 == p.type` and `p: q.type` then try `tp1 <:< q.type` as a last effort.*/
610608
def comparePaths = tp2 match {

0 commit comments

Comments
 (0)