From fb31f764a21178353f78c032a7c1059d024dfe00 Mon Sep 17 00:00:00 2001 From: Geoffrey Washburn Date: Fri, 7 Mar 2008 13:39:33 +0000 Subject: Fixed #274 by using NameTransformer.decode. --- src/compiler/scala/tools/nsc/Interpreter.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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} /**

@@ -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(" + -- cgit v1.2.3