summaryrefslogtreecommitdiff
path: root/test/files/run/t9749-repl-dot.scala
diff options
context:
space:
mode:
authorsom-snytt <som.snytt@gmail.com>2016-04-15 01:28:18 -0700
committerLukas Rytz <lukas.rytz@typesafe.com>2016-04-15 10:28:18 +0200
commit804a4cc1ff9fa159c576be7c685dbb81220c11da (patch)
tree1ce5cf263d27ac62735ca03d37e67d93ca4498d3 /test/files/run/t9749-repl-dot.scala
parentd6f66ec0f38e42c19f79cbe9d32d29c65dee1e05 (diff)
downloadscala-804a4cc1ff9fa159c576be7c685dbb81220c11da.tar.gz
scala-804a4cc1ff9fa159c576be7c685dbb81220c11da.tar.bz2
scala-804a4cc1ff9fa159c576be7c685dbb81220c11da.zip
SI-9749 REPL strip lead ws on dot continuation (#5097)
Permit leading whitespace before `.` for continued selection. This is just to handle pastes, which will typically include indented text, and not to make dot-continuation especially robust.
Diffstat (limited to 'test/files/run/t9749-repl-dot.scala')
-rw-r--r--test/files/run/t9749-repl-dot.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t9749-repl-dot.scala b/test/files/run/t9749-repl-dot.scala
new file mode 100644
index 0000000000..19cecbf444
--- /dev/null
+++ b/test/files/run/t9749-repl-dot.scala
@@ -0,0 +1,10 @@
+
+import scala.tools.partest.ReplTest
+
+object Test extends ReplTest {
+ def code =
+ """
+"3"
+ .toInt
+ """
+}