diff options
author | som-snytt <som.snytt@gmail.com> | 2016-04-15 01:28:18 -0700 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-04-15 10:28:18 +0200 |
commit | 804a4cc1ff9fa159c576be7c685dbb81220c11da (patch) | |
tree | 1ce5cf263d27ac62735ca03d37e67d93ca4498d3 /test/files/run | |
parent | d6f66ec0f38e42c19f79cbe9d32d29c65dee1e05 (diff) | |
download | scala-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')
-rw-r--r-- | test/files/run/t9749-repl-dot.check | 8 | ||||
-rw-r--r-- | test/files/run/t9749-repl-dot.scala | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t9749-repl-dot.check b/test/files/run/t9749-repl-dot.check new file mode 100644 index 0000000000..5ffec4ce60 --- /dev/null +++ b/test/files/run/t9749-repl-dot.check @@ -0,0 +1,8 @@ + +scala> "3" +res0: String = 3 + +scala> .toInt +res1: Int = 3 + +scala> :quit 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 + """ +} |