Skip to content

Commit 3396b0f

Browse files
committed
Checking whether we can keep typing of AppliedTermRefs more restrictive after typer.
1 parent 4f5e7f5 commit 3396b0f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,6 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
563563
compareTypeBounds
564564
case tp2: AppliedTermRef =>
565565
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)
569566
case tp1: AppliedTermRef =>
570567
sameLength(tp1.args, tp2.args) && isSubType(tp1.fn, tp2.fn) &&
571568
(tp1.args, tp2.args).zipped.forall(isSubType)

0 commit comments

Comments
 (0)