From 84977a0e35e53536c4777594d0a352c7a54b769a Mon Sep 17 00:00:00 2001 From: Georg Schmid Date: Tue, 23 Jan 2018 23:22:24 +0100 Subject: [PATCH] Removed unnecessary (and restrictive) case for AppliedTermRefs in fourthTry() of TypeComparer. --- compiler/src/dotty/tools/dotc/core/TypeComparer.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/core/TypeComparer.scala b/compiler/src/dotty/tools/dotc/core/TypeComparer.scala index 9ac56b99eb29..766438712f8b 100644 --- a/compiler/src/dotty/tools/dotc/core/TypeComparer.scala +++ b/compiler/src/dotty/tools/dotc/core/TypeComparer.scala @@ -614,8 +614,6 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling { } case tp1 @ AppliedType(tycon1, args1) => compareAppliedType1(tp1, tycon1, args1, tp2) - case tp1: AppliedTermRef => - isSubType(tp1.resType, tp2) case tp1: SingletonType => /** if `tp2 == p.type` and `p: q.type` then try `tp1 <:< q.type` as a last effort.*/ def comparePaths = tp2 match {