diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-11-16 14:20:29 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-11-16 14:20:29 -0800 |
commit | c81ef00dece5582f5f53b9b4320f7b755cc6bdae (patch) | |
tree | 156fd7e12e3b35ac7e21d2fe3fd9dbdda8035694 /test/files/run | |
parent | 813fa70c71e55ab8eb3d5f909c12cb417f2b30e4 (diff) | |
parent | 16b5a7e722bc9272815006b9a0629733d455d039 (diff) | |
download | scala-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.check | 2 | ||||
-rw-r--r-- | test/files/run/t6628.scala | 11 |
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) + } +} |