diff options
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 |