diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-04 11:59:10 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-04 11:59:10 +0200 |
commit | 82185387328454e8f06110eadeccd5634d18f998 (patch) | |
tree | 6bb77955e55753e4db51723121f571118b9199e9 | |
parent | 01f6ed8e22d02811fe62b9183d9f84bdda5ede4b (diff) | |
download | scala-82185387328454e8f06110eadeccd5634d18f998.tar.gz scala-82185387328454e8f06110eadeccd5634d18f998.tar.bz2 scala-82185387328454e8f06110eadeccd5634d18f998.zip |
run patmat after typer, but not *right* after
sbt needs that spot right after type for its phase xsbt-api
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index e4cfad53c7..dfab703843 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -464,13 +464,15 @@ class Global(var currentSettings: Settings, var reporter: Reporter) extends Symb object patmat extends { val global: Global.this.type = Global.this val runsAfter = List("typer") - val runsRightAfter = Some("typer") + // patmat doesn't need to be right after typer, as long as we run before supperaccesors + // (sbt does need to run right after typer, so don't conflict) + val runsRightAfter = None } with PatternMatching // phaseName = "superaccessors" object superAccessors extends { val global: Global.this.type = Global.this - val runsAfter = List("typer") + val runsAfter = List("patmat") val runsRightAfter = None } with SuperAccessors |