Permalink
Browse files

run patmat after typer, but not *right* after

sbt needs that spot right after type for its phase xsbt-api
  • Loading branch information...
adriaanm committed May 4, 2012
1 parent 01f6ed8 commit 82185387328454e8f06110eadeccd5634d18f998
Showing with 4 additions and 2 deletions.
  1. +4 −2 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

0 comments on commit 8218538

Please sign in to comment.