Skip to content

Commit

Permalink
Removed unnecessary (and restrictive) case for AppliedTermRefs in fou…
Browse files Browse the repository at this point in the history
…rthTry() of TypeComparer.
  • Loading branch information
gsps committed Jan 23, 2018
1 parent 4d1ced0 commit 84977a0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/src/dotty/tools/dotc/core/TypeComparer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 84977a0

Please sign in to comment.