diff options
author | Martin Odersky <odersky@gmail.com> | 2009-09-25 16:20:13 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-09-25 16:20:13 +0000 |
commit | 4a727f3b01d0fa27ef51f7dba472116e021e3445 (patch) | |
tree | c9ab55ea7fe6051455271b23e9fbfc2f313015c0 /test/files/run | |
parent | e31f18094dfba97c80871869a037172ff2c9c1c2 (diff) | |
download | scala-4a727f3b01d0fa27ef51f7dba472116e021e3445.tar.gz scala-4a727f3b01d0fa27ef51f7dba472116e021e3445.tar.bz2 scala-4a727f3b01d0fa27ef51f7dba472116e021e3445.zip |
Collections refactoring.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t2074_2.check | 4 | ||||
-rw-r--r-- | test/files/run/t2074_2.scala | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/files/run/t2074_2.check b/test/files/run/t2074_2.check index 6bb1d596bd..416b327bd0 100644 --- a/test/files/run/t2074_2.check +++ b/test/files/run/t2074_2.check @@ -1 +1,3 @@ -VectorViewTemplateZ((1,1), (2,2), (3,3)) +VectorView(1, 2, 3) +VectorView(1, 2, 3) +VectorViewZ((1,1), (2,2), (3,3)) diff --git a/test/files/run/t2074_2.scala b/test/files/run/t2074_2.scala index 6aca6c3f60..24fa6c7601 100644 --- a/test/files/run/t2074_2.scala +++ b/test/files/run/t2074_2.scala @@ -1,5 +1,5 @@ import scala.collection.immutable.Vector -import scala.collection.generic.VectorView +import scala.collection.VectorView object Test { val v = new VectorView[Int, Vector[Int]] { @@ -7,8 +7,11 @@ object Test { def apply(idx: Int) = underlying(idx) def length = underlying.length } + val w = Vector(1, 2, 3).view def main(args: Array[String]): Unit = { + println(v) + println(w) println(go) } def go = v zip v |