Skip to content

Commit 7cdf3d0

Browse files
committed
Merge pull request #274 from smarter/fix/period-of-phases
Phases: set the period correctly
2 parents 1ce4c34 + ae655d4 commit 7cdf3d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotty/tools/dotc/core/Phases.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ object Phases {
241241
if (start >= FirstPhaseId)
242242
assert(myPeriod == Periods.InvalidPeriod, s"phase $this has already been used once; cannot be reused")
243243
myBase = base
244-
myPeriod = Period(start, end)
244+
myPeriod = Period(NoRunId, start, end)
245245
myErasedTypes = prev.getClass == classOf[Erasure] || prev.erasedTypes
246246
myFlatClasses = prev.getClass == classOf[Flatten] || prev.flatClasses
247247
myRefChecked = prev.getClass == classOf[RefChecks] || prev.refChecked
@@ -250,7 +250,7 @@ object Phases {
250250

251251
protected[Phases] def init(base: ContextBase, id: Int): Unit = init(base, id, id)
252252

253-
final def <=(that: Phase)(implicit ctx: Context) =
253+
final def <=(that: Phase) =
254254
exists && id <= that.id
255255

256256
final def prev: Phase =

0 commit comments

Comments
 (0)