diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-10-18 10:57:42 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-10-18 10:57:42 +0000 |
commit | 973ac733622eb9409c8c5ffcf05ba14775e07b18 (patch) | |
tree | ec81eb09c08328181915a528b196f08344069cdc /src | |
parent | bba64758bb82e940c8f2108a6a365aaf6701edfe (diff) | |
download | scala-973ac733622eb9409c8c5ffcf05ba14775e07b18.tar.gz scala-973ac733622eb9409c8c5ffcf05ba14775e07b18.tar.bz2 scala-973ac733622eb9409c8c5ffcf05ba14775e07b18.zip |
Reverting fix/test for #1404.
Added test for array pretty-printing.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/Interpreter.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala index 09b8c6f068..99606e856f 100644 --- a/src/compiler/scala/tools/nsc/Interpreter.scala +++ b/src/compiler/scala/tools/nsc/Interpreter.scala @@ -627,8 +627,7 @@ class Interpreter(val settings: Settings, out: PrintWriter) { ".asInstanceOf[AnyRef] != null) " + " { val tmp = " + req.fullPath(vname) + - // Cast to Any to avoid ambiguity in choice of toString - ".asInstanceOf[Any].toString(); " + + ".toString(); " + " (if(tmp.contains('\\n')) \"\\n\" else \"\") + tmp + \"\\n\"} else \"null\\n\") ") } } |