aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2014-12-13 09:25:31 +0100
committerDmitry Petrashko <dark@d-d.me>2014-12-13 09:25:31 +0100
commit7cdf3d0dc5709634825b1300d77d1a0ef01c69fa (patch)
tree5f90791c198ebf958c0f91e42069fca15bdf1555 /src/dotty/tools/dotc/core
parent1ce4c34c65ada5eb6c42fb72a03171467c08ee9b (diff)
parentae655d4300ff62e8951514960da53a256e508596 (diff)
downloaddotty-7cdf3d0dc5709634825b1300d77d1a0ef01c69fa.tar.gz
dotty-7cdf3d0dc5709634825b1300d77d1a0ef01c69fa.tar.bz2
dotty-7cdf3d0dc5709634825b1300d77d1a0ef01c69fa.zip
Merge pull request #274 from smarter/fix/period-of-phases
Phases: set the period correctly
Diffstat (limited to 'src/dotty/tools/dotc/core')
-rw-r--r--src/dotty/tools/dotc/core/Phases.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Phases.scala b/src/dotty/tools/dotc/core/Phases.scala
index 8476ae601..ffe2ddbea 100644
--- a/src/dotty/tools/dotc/core/Phases.scala
+++ b/src/dotty/tools/dotc/core/Phases.scala
@@ -241,7 +241,7 @@ object Phases {
if (start >= FirstPhaseId)
assert(myPeriod == Periods.InvalidPeriod, s"phase $this has already been used once; cannot be reused")
myBase = base
- myPeriod = Period(start, end)
+ myPeriod = Period(NoRunId, start, end)
myErasedTypes = prev.getClass == classOf[Erasure] || prev.erasedTypes
myFlatClasses = prev.getClass == classOf[Flatten] || prev.flatClasses
myRefChecked = prev.getClass == classOf[RefChecks] || prev.refChecked
@@ -250,7 +250,7 @@ object Phases {
protected[Phases] def init(base: ContextBase, id: Int): Unit = init(base, id, id)
- final def <=(that: Phase)(implicit ctx: Context) =
+ final def <=(that: Phase) =
exists && id <= that.id
final def prev: Phase =