summaryrefslogblamecommitdiff
path: root/test/files/run/t2074_2.scala
blob: 6aca6c3f60e20f13c35330da91a901d799aef565 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}