From 40263b7fa68b6dfa50b4f9a8e72726182243f3af Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 31 Mar 2011 19:26:37 +0000 Subject: Fix for a little breakage which crept into powe... Fix for a little breakage which crept into power mode. This is why real things with real types are better than generating code and remembering to update your strings. No review. --- src/compiler/scala/tools/nsc/interpreter/ILoop.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala index 787502498a..30c2c86d88 100644 --- a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala +++ b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala @@ -354,7 +354,6 @@ class ILoop(in0: Option[BufferedReader], protected val out: PrintWriter) if (line == "") "Cleared wrapper." else "Set wrapper to '" + line + "'" } - private def pathToPhased = intp.pathToTerm("power") + ".phased" private def phaseCommand(name: String): Result = { // This line crashes us in TreeGen: // @@ -385,7 +384,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: PrintWriter) if (what.isEmpty || !phased.set(what)) "'" + name + "' does not appear to represent a valid phase." else { - intp.setExecutionWrapper(pathToPhased) + intp.setExecutionWrapper("phased.atCurrent") val activeMessage = if (what.toString.length == name.length) "" + what else "%s (%s)".format(what, name) -- cgit v1.2.3