diff options
Diffstat (limited to 'src/repl')
-rw-r--r-- | src/repl/scala/tools/nsc/interpreter/ILoop.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/scala/tools/nsc/interpreter/ILoop.scala b/src/repl/scala/tools/nsc/interpreter/ILoop.scala index 217414809e..a96bed4696 100644 --- a/src/repl/scala/tools/nsc/interpreter/ILoop.scala +++ b/src/repl/scala/tools/nsc/interpreter/ILoop.scala @@ -579,7 +579,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter) def apply(line: String): Result = line match { case "" => showUsage() case _ => - val toRun = classOf[ProcessResult].getName + "(" + string2codeQuoted(line) + ")" + val toRun = s"new ${classOf[ProcessResult].getName}(${string2codeQuoted(line)})" intp interpret toRun () } |