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 6b82a6f commit 8636508Copy full SHA for 8636508
compiler/src/dotty/tools/dotc/core/Phases.scala
@@ -348,6 +348,7 @@ object Phases {
348
protected[Phases] def init(base: ContextBase, start: Int, end:Int): Unit = {
349
if (start >= FirstPhaseId)
350
assert(myPeriod == Periods.InvalidPeriod, s"phase $this has already been used once; cannot be reused")
351
+ assert(start <= Periods.MaxPossiblePhaseId, s"Too many phases, Period bits overflow")
352
myBase = base
353
myPeriod = Period(NoRunId, start, end)
354
myErasedTypes = prev.getClass == classOf[Erasure] || prev.erasedTypes
0 commit comments