Skip to content

Commit 84977a0

Browse files
committed
Removed unnecessary (and restrictive) case for AppliedTermRefs in fourthTry() of TypeComparer.
1 parent 4d1ced0 commit 84977a0

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
@@ -614,8 +614,6 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
614614
}
615615
case tp1 @ AppliedType(tycon1, args1) =>
616616
compareAppliedType1(tp1, tycon1, args1, tp2)
617-
case tp1: AppliedTermRef =>
618-
isSubType(tp1.resType, tp2)
619617
case tp1: SingletonType =>
620618
/** if `tp2 == p.type` and `p: q.type` then try `tp1 <:< q.type` as a last effort.*/
621619
def comparePaths = tp2 match {

0 commit comments

Comments
 (0)