diff options
author | paltherr <paltherr@epfl.ch> | 2003-09-08 01:20:32 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-09-08 01:20:32 +0000 |
commit | e9a7b01df14b8f21bcf9cc0665a6d4c62a91431f (patch) | |
tree | 34eb190d3846a33107e429947aa5c4b13b4118ec /sources/scalac/Global.java | |
parent | 139d9a3f87ad08f379fa774612a40b512c8c94de (diff) | |
download | scala-e9a7b01df14b8f21bcf9cc0665a6d4c62a91431f.tar.gz scala-e9a7b01df14b8f21bcf9cc0665a6d4c62a91431f.tar.bz2 scala-e9a7b01df14b8f21bcf9cc0665a6d4c62a91431f.zip |
- Add fix to use right phase to print tree
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r-- | sources/scalac/Global.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index 4e23f40510..e7cd60def3 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -297,7 +297,7 @@ public class Global { // go to next phase to print symbols with their new type boolean next = currentPhase.next != null; if (next) currentPhase = currentPhase.next; - currentPhase.print(this); + (next ? currentPhase.prev : currentPhase).print(this); if (next) currentPhase = currentPhase.prev; } if (currentPhase.descriptor.hasGraphFlag()) @@ -333,7 +333,7 @@ public class Global { // go to next phase to print symbols with their new type boolean next = currentPhase.next != null; if (next) currentPhase = currentPhase.next; - currentPhase.print(this); + (next ? currentPhase.prev : currentPhase).print(this); if (next) currentPhase = currentPhase.prev; } if (currentPhase.descriptor.hasGraphFlag()) |