From 16b5a7e722bc9272815006b9a0629733d455d039 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 15 Nov 2012 09:26:16 -0800 Subject: Fixes SI-6628, Revert "Fix for view isEmpty." This reverts commit caf7eb6b56817fd1e1fbc1cf017f30e6f94c6bea. I don't have a better idea right now than wholesale reversion. --- test/files/run/t6628.check | 2 ++ test/files/run/t6628.scala | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 test/files/run/t6628.check create mode 100644 test/files/run/t6628.scala (limited to 'test') 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) + } +} -- cgit v1.2.3