summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/Global.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java
index ff882fe12c..426f59af59 100644
--- a/sources/scalac/Global.java
+++ b/sources/scalac/Global.java
@@ -385,7 +385,8 @@ public abstract class Global {
currentPhase = PHASE.INITIAL.phase();
// apply successive phases and pray that it works
- while (currentPhase.next != null && reporter.errors() == 0) {
+ // !!! remove NAMER test ?
+ while (currentPhase.next != null && ((currentPhase == PHASE.NAMER.phase()) || (reporter.errors() == 0))) {
currentPhase = currentPhase.next;
start();
// System.out.println("*** " + currentPhase.descriptor.description() + " ***");