Skip to content

Commit 1a6871c

Browse files
committed
Drop assertSamePeriod
1 parent c640a35 commit 1a6871c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ object Contexts {
9696
atPhase(if !limit.exists || limit <= currentPhase then currentPhase else limit)(op)
9797

9898
inline def currentPeriod(using ctx: Ctx, cs: CState): Period =
99-
assertSamePeriod()
100-
cs
99+
//assertSamePeriod()
100+
ctx.asInstanceOf[Context].period
101101

102102
def assertSamePeriod()(using ctx: Ctx, cs: CState) =
103103
assert(ctx.asInstanceOf[Context].period == cs, s"period discrepancy, in context = ${ctx.asInstanceOf[Context].period}, state = $cs")

0 commit comments

Comments
 (0)