aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t6628.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t6628.scala')
-rw-r--r--tests/pending/run/t6628.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pending/run/t6628.scala b/tests/pending/run/t6628.scala
new file mode 100644
index 000000000..84524a7a3
--- /dev/null
+++ b/tests/pending/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)
+ }
+}