summaryrefslogtreecommitdiff
path: root/sources/scalac/atree/ATreePrinter.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/atree/ATreePrinter.java')
-rw-r--r--sources/scalac/atree/ATreePrinter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/atree/ATreePrinter.java b/sources/scalac/atree/ATreePrinter.java
index 6e83b4ae36..620568e8d3 100644
--- a/sources/scalac/atree/ATreePrinter.java
+++ b/sources/scalac/atree/ATreePrinter.java
@@ -385,7 +385,7 @@ public class ATreePrinter {
rbrace().space().print("else").space().lbrace();
printCode(failure).line();
return rbrace();
- case Switch(ACode test, int[][] tags, ACode[] bodies, ACode other):
+ case Switch(ACode test, int[][] tags, ACode[] bodies):
print("switch").space().print('(').printCode(test).print(')');
lbrace();
for (int i = 0; i < tags.length; i++) {
@@ -394,7 +394,7 @@ public class ATreePrinter {
indent().printCode(bodies[i]).undent().line();
}
print("case").space().print('_').print(':').line();
- indent().printCode(other).undent();
+ indent().printCode(bodies[tags.length]).undent();
return rbrace();
case Synchronized(ACode lock, ACode value):
print("synchronized").space();