summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-03-07 13:39:33 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-03-07 13:39:33 +0000
commitfb31f764a21178353f78c032a7c1059d024dfe00 (patch)
treeb9e8d274ae5b20bbb29ba8b5c15a3a5a8f4aeec0 /src
parent36894f563985a3e682e6b35d8ed1155bc4d9a17d (diff)
downloadscala-fb31f764a21178353f78c032a7c1059d024dfe00.tar.gz
scala-fb31f764a21178353f78c032a7c1059d024dfe00.tar.bz2
scala-fb31f764a21178353f78c032a7c1059d024dfe00.zip
Fixed #274 by using NameTransformer.decode.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/Interpreter.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala
index b9e19111ab..43f7c18e02 100644
--- a/src/compiler/scala/tools/nsc/Interpreter.scala
+++ b/src/compiler/scala/tools/nsc/Interpreter.scala
@@ -18,7 +18,7 @@ import scala.collection.mutable.{ListBuffer, HashSet, ArrayBuffer}
import io.PlainFile
import reporters.{ConsoleReporter, Reporter}
import symtab.Flags
-import util.{SourceFile,BatchSourceFile,ClassPath}
+import util.{SourceFile,BatchSourceFile,ClassPath,NameTransformer}
import nsc.{InterpreterResults=>IR}
/** <p>
@@ -617,7 +617,8 @@ class Interpreter(val settings: Settings, out: PrintWriter) {
!(isGeneratedVarName(vname) &&
req.typeOf(compiler.encode(vname)) == "Unit"))
{
- code.print(" + \"" + vname + ": " +
+ val prettyName = NameTransformer.decode(vname)
+ code.print(" + \"" + prettyName + ": " +
string2code(req.typeOf(vname)) +
" = \" + " +
" (if(" +