summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorLex Spoon <lex@lexspoon.org>2006-02-28 14:53:52 +0000
committerLex Spoon <lex@lexspoon.org>2006-02-28 14:53:52 +0000
commitbbcf2deba1a69a40f6dfe8b7a79d6b487cf592d1 (patch)
tree56264033f63c0f05cd97346d8e3124b8b5c26c8d /src/compiler
parentdc92346c815d377317d813b937b15fd0395b00d2 (diff)
downloadscala-bbcf2deba1a69a40f6dfe8b7a79d6b487cf592d1.tar.gz
scala-bbcf2deba1a69a40f6dfe8b7a79d6b487cf592d1.tar.bz2
scala-bbcf2deba1a69a40f6dfe8b7a79d6b487cf592d1.zip
avoid a newline in the generated code, to avoid an
undesired auto-inserted semicolon
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/Interpreter.scala2
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\"")
}
}