diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-06-30 11:08:44 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-06-30 11:08:44 +0000 |
commit | 211fcd601e09e44f5b308f698634b04c6c806eef (patch) | |
tree | f79e7c13a0e740a04ebed3f1f955ddc01c5e53bf /test/files/run | |
parent | 0464a24e406a636aecd517c1a1af9056f60efac0 (diff) | |
download | scala-211fcd601e09e44f5b308f698634b04c6c806eef.tar.gz scala-211fcd601e09e44f5b308f698634b04c6c806eef.tar.bz2 scala-211fcd601e09e44f5b308f698634b04c6c806eef.zip |
Applied patches to fix the issues in #2074.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t2074.scala | 3 | ||||
-rw-r--r-- | test/files/run/t2074_2.check | 1 | ||||
-rw-r--r-- | test/files/run/t2074_2.scala | 15 |
3 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/t2074.scala b/test/files/run/t2074.scala new file mode 100644 index 0000000000..60646be733 --- /dev/null +++ b/test/files/run/t2074.scala @@ -0,0 +1,3 @@ +object Test extends Application { + List.range(1,11).view.patch(5, List(100,101), 2) +} diff --git a/test/files/run/t2074_2.check b/test/files/run/t2074_2.check new file mode 100644 index 0000000000..6bb1d596bd --- /dev/null +++ b/test/files/run/t2074_2.check @@ -0,0 +1 @@ +VectorViewTemplateZ((1,1), (2,2), (3,3)) diff --git a/test/files/run/t2074_2.scala b/test/files/run/t2074_2.scala new file mode 100644 index 0000000000..6aca6c3f60 --- /dev/null +++ b/test/files/run/t2074_2.scala @@ -0,0 +1,15 @@ +import scala.collection.immutable.Vector +import scala.collection.generic.VectorView + +object Test { + val v = new VectorView[Int, Vector[Int]] { + def underlying = Vector(1,2,3) + def apply(idx: Int) = underlying(idx) + def length = underlying.length + } + + def main(args: Array[String]): Unit = { + println(go) + } + def go = v zip v +} |