summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-15 15:23:49 +0000
committerPaul Phillips <paulp@improving.org>2010-04-15 15:23:49 +0000
commit348271c8b27af1c29f7705ea2853c934492ee327 (patch)
tree7b8303088b44c6de0811fe422e94e12246298031 /src/compiler
parentc0d1bc031ee67f3caee9bfe01a425850b61e1d16 (diff)
downloadscala-348271c8b27af1c29f7705ea2853c934492ee327.tar.gz
scala-348271c8b27af1c29f7705ea2853c934492ee327.tar.bz2
scala-348271c8b27af1c29f7705ea2853c934492ee327.zip
A repl corner case. Closes #3298, no review.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/InterpreterLoop.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/InterpreterLoop.scala b/src/compiler/scala/tools/nsc/InterpreterLoop.scala
index 9d568418f8..aadb8700de 100644
--- a/src/compiler/scala/tools/nsc/InterpreterLoop.scala
+++ b/src/compiler/scala/tools/nsc/InterpreterLoop.scala
@@ -527,7 +527,7 @@ class InterpreterLoop(in0: Option[BufferedReader], protected val out: PrintWrite
interpretAsPastedTranscript(List(code))
None
}
- else if (Completion.looksLikeInvocation(code)) {
+ else if (Completion.looksLikeInvocation(code) && interpreter.mostRecentVar != "") {
interpretStartingWith(interpreter.mostRecentVar + code)
}
else {