diff options
-rw-r--r-- | src/scalap/scala/tools/scalap/scalax/rules/scalasig/ScalaSigPrinter.scala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/scalap/scala/tools/scalap/scalax/rules/scalasig/ScalaSigPrinter.scala b/src/scalap/scala/tools/scalap/scalax/rules/scalasig/ScalaSigPrinter.scala index 80f2d01184..31bbfa16af 100644 --- a/src/scalap/scala/tools/scalap/scalax/rules/scalasig/ScalaSigPrinter.scala +++ b/src/scalap/scala/tools/scalap/scalax/rules/scalasig/ScalaSigPrinter.scala @@ -286,9 +286,13 @@ class ScalaSigPrinter(stream: PrintStream, printPrivates: Boolean) { val buffer = new StringBuffer buffer.append(toString(attrib.typeRef, "@")) if (attrib.value.isDefined) { - buffer.append("(\"") - buffer.append(valueToString(attrib.value.get)) - buffer.append("\")") + buffer.append("(") + val value = attrib.value.get + val stringVal = value.isInstanceOf[String] + if (stringVal) buffer.append("\"") + buffer.append(valueToString(value)) + if (stringVal) buffer.append("\"") + buffer.append(")") } if (!attrib.values.isEmpty) { buffer.append(" {") |