We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f5e7f5 commit 3396b0fCopy full SHA for 3396b0f
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -563,9 +563,6 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
563
compareTypeBounds
564
case tp2: AppliedTermRef =>
565
def compareAppliedTerm = tp1 match {
566
- case _ if !ctx.phase.isTyper =>
567
- // Need to be more permissive when checking later phases, applications may have been rewritten
568
- isSubType(tp1, tp2.resType)
569
case tp1: AppliedTermRef =>
570
sameLength(tp1.args, tp2.args) && isSubType(tp1.fn, tp2.fn) &&
571
(tp1.args, tp2.args).zipped.forall(isSubType)
0 commit comments