summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2012-11-16 14:20:29 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2012-11-16 14:20:29 -0800
commitc81ef00dece5582f5f53b9b4320f7b755cc6bdae (patch)
tree156fd7e12e3b35ac7e21d2fe3fd9dbdda8035694 /test/files/run
parent813fa70c71e55ab8eb3d5f909c12cb417f2b30e4 (diff)
parent16b5a7e722bc9272815006b9a0629733d455d039 (diff)
downloadscala-c81ef00dece5582f5f53b9b4320f7b755cc6bdae.tar.gz
scala-c81ef00dece5582f5f53b9b4320f7b755cc6bdae.tar.bz2
scala-c81ef00dece5582f5f53b9b4320f7b755cc6bdae.zip
Merge pull request #1636 from paulp/issue/6628
Fixes SI-6628, Revert "Fix for view isEmpty."
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t6628.check2
-rw-r--r--test/files/run/t6628.scala11
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/t6628.check b/test/files/run/t6628.check
new file mode 100644
index 0000000000..bb101b641b
--- /dev/null
+++ b/test/files/run/t6628.check
@@ -0,0 +1,2 @@
+true
+true
diff --git a/test/files/run/t6628.scala b/test/files/run/t6628.scala
new file mode 100644
index 0000000000..84524a7a35
--- /dev/null
+++ b/test/files/run/t6628.scala
@@ -0,0 +1,11 @@
+object Test {
+ def coll = new Traversable[String] {
+ override def foreach[U](f:String=>U) { f("1") }
+ }
+ val dropped = coll.view drop 1
+
+ def main(args: Array[String]): Unit = {
+ println(dropped.isEmpty)
+ println(dropped.force.isEmpty)
+ }
+}