diff options
Diffstat (limited to 'test/files/run/t2074_2.scala')
-rw-r--r-- | test/files/run/t2074_2.scala | 15 |
1 files changed, 15 insertions, 0 deletions
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 +} |