summaryrefslogtreecommitdiff
path: root/test/files/run/t2074_2.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2010-04-06 13:53:39 +0000
committerMartin Odersky <odersky@gmail.com>2010-04-06 13:53:39 +0000
commite0cf98dd424980a8d6d93af7650ba75c835b80bc (patch)
tree5f6b70d06f33a7a18dc4ac014df0025863f0cc94 /test/files/run/t2074_2.scala
parenta292a87fc5b6145ea3a790780c0d24c83375b228 (diff)
downloadscala-e0cf98dd424980a8d6d93af7650ba75c835b80bc.tar.gz
scala-e0cf98dd424980a8d6d93af7650ba75c835b80bc.tar.bz2
scala-e0cf98dd424980a8d6d93af7650ba75c835b80bc.zip
Optimized toArray for ArrayOps and WrappedArrays.
Diffstat (limited to 'test/files/run/t2074_2.scala')
-rw-r--r--test/files/run/t2074_2.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/files/run/t2074_2.scala b/test/files/run/t2074_2.scala
index 4999552cc4..4624170f89 100644
--- a/test/files/run/t2074_2.scala
+++ b/test/files/run/t2074_2.scala
@@ -1,14 +1,15 @@
// replaced all occurrences of 'Vector' with 'IndexedSeq'
import scala.collection.immutable.IndexedSeq
-import scala.collection.IndexedSeqView
+import scala.collection.SeqView
object Test {
val funWithCCE = List.range(1,11).view.patch(5, List(100,101), 2)
- val v = new IndexedSeqView[Int, IndexedSeq[Int]] {
+ val v = new SeqView[Int, IndexedSeq[Int]] {
def underlying = IndexedSeq(1,2,3)
def apply(idx: Int) = underlying(idx)
def length = underlying.length
+ def iterator = underlying.iterator
}
val w = IndexedSeq(1, 2, 3).view