Skip to content

Commit

Permalink
Break initialization cycle in Transformers.
Browse files Browse the repository at this point in the history
  • Loading branch information
retronym committed Feb 10, 2013
1 parent 0ead5e8 commit e098f4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dotty/tools/dotc/core/Transformers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.lang.AssertionError

trait Transformers

object Transformers {
object Transformers { transSelf =>

trait TransformerBase { self: ContextBase =>

Expand All @@ -32,7 +32,8 @@ object Transformers {
}

object NoTransformer extends Transformer {
val phaseId = lastPhaseId + 1
val phaseId = transSelf.lastPhaseId + 1
override def lastPhaseId = phaseId - 1 // TODO JZ Probably off-by-N error here.
def transform(ref: SingleDenotation)(implicit ctx: Context): SingleDenotation =
unsupported("transform")
}
Expand Down

0 comments on commit e098f4c

Please sign in to comment.