diff options
author | michelou <michelou@epfl.ch> | 2007-08-22 15:01:10 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-08-22 15:01:10 +0000 |
commit | e731089080b55957551288915fd76d20f1e70d1d (patch) | |
tree | 9bb3db6424e24633e320f651f7b817d5313c2e05 /src/compiler | |
parent | 83d4a1b304b83fa97209c7e6db32ab82738d5e1e (diff) | |
download | scala-e731089080b55957551288915fd76d20f1e70d1d.tar.gz scala-e731089080b55957551288915fd76d20f1e70d1d.tar.bz2 scala-e731089080b55957551288915fd76d20f1e70d1d.zip |
small fix in output
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/NodePrinters.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/NodePrinters.scala b/src/compiler/scala/tools/nsc/ast/NodePrinters.scala index 6cbb39dc83..1533013e21 100644 --- a/src/compiler/scala/tools/nsc/ast/NodePrinters.scala +++ b/src/compiler/scala/tools/nsc/ast/NodePrinters.scala @@ -188,10 +188,10 @@ abstract class NodePrinters { traverse(tparams(i), level + 2, i < n-1) println(" ),") } - if (vparamss.isEmpty) + val n = vparamss.length + if (n == 1 && vparamss(0).isEmpty) println(" List(List()), // no parameter") else { - val n = vparamss.length println(" List(") for (i <- 0 until n) { val m = vparamss(i).length @@ -202,7 +202,7 @@ abstract class NodePrinters { } println(" ),") } - println(tpt+",") + println(" " + tpt + ",") traverse(rhs, level + 1, false) printcln(")") case EmptyTree => |