Skip to content

Commit 9bde23a

Browse files
committed
Drop superfluous code
The dropped lines were both pure functions whose result is ignored.
1 parent 490cc5f commit 9bde23a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
449449
case _ =>
450450
}
451451
case _ =>
452-
if (!ctx.isAfterTyper) {
453-
val setBefore = ctx.mode is Mode.GADTflexible
454-
tpt1.tpe.<:<(pt)(ctx.addMode(Mode.GADTflexible))
455-
if (!setBefore) ctx.retractMode(Mode.GADTflexible)
456-
}
452+
if (!ctx.isAfterTyper) tpt1.tpe.<:<(pt)(ctx.addMode(Mode.GADTflexible))
457453
}
458454
ascription(tpt1, isWildcard = true)
459455
}

0 commit comments

Comments
 (0)