diff options
author | Lex Spoon <lex@lexspoon.org> | 2006-02-28 14:53:52 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2006-02-28 14:53:52 +0000 |
commit | bbcf2deba1a69a40f6dfe8b7a79d6b487cf592d1 (patch) | |
tree | 56264033f63c0f05cd97346d8e3124b8b5c26c8d | |
parent | dc92346c815d377317d813b937b15fd0395b00d2 (diff) | |
download | scala-bbcf2deba1a69a40f6dfe8b7a79d6b487cf592d1.tar.gz scala-bbcf2deba1a69a40f6dfe8b7a79d6b487cf592d1.tar.bz2 scala-bbcf2deba1a69a40f6dfe8b7a79d6b487cf592d1.zip |
avoid a newline in the generated code, to avoid an
undesired auto-inserted semicolon
-rw-r--r-- | src/compiler/scala/tools/nsc/Interpreter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala index fa2960e56c..217823d2a9 100644 --- a/src/compiler/scala/tools/nsc/Interpreter.scala +++ b/src/compiler/scala/tools/nsc/Interpreter.scala @@ -348,7 +348,7 @@ class Interpreter(val compiler: Global, output: (String => Unit)) { def resultExtractionCode(code: PrintWriter): Unit = { for(val vname <- namesToPrintForUser) { - code.println(" + \"" + vname + ": " + typeOf(vname) + + code.print(" + \"" + vname + ": " + typeOf(vname) + " = \" + " + objectName + "." + vname + " + \"\\n\"") } } |