summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2007-08-06 21:36:06 +0000
committerLex Spoon <lex@lexspoon.org>2007-08-06 21:36:06 +0000
commitfe133c86f413abc789164619221bf560b97531b1 (patch)
treef6712ae76bc7250e2361f9a143ee33842d1aa21f /src
parenta00c8f75f17206b0a6f055d5db168415054aeb34 (diff)
downloadscala-fe133c86f413abc789164619221bf560b97531b1.tar.gz
scala-fe133c86f413abc789164619221bf560b97531b1.tar.bz2
scala-fe133c86f413abc789164619221bf560b97531b1.zip
create a new Run before computing the phases in...
create a new Run before computing the phases in phaseDescription (see bug #1255)
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index bad2cff766..b0f6c17585 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -426,6 +426,7 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
/** A description of the phases that will run */
def phaseDescriptions: String = {
+ new Run // force some initialization
val messages =
for (phase <- phaseDescriptors)
yield phase.phaseName //todo: + " - " + phase.description