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 aa29fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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,8 @@ 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: 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 aa29fe1

Please sign in to comment.