summaryrefslogtreecommitdiff
path: root/test/files/run/indexedSeq.scala
blob: 9744f47f63080a7e62d8f1ad20f52d5949271e7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test {
  import scala.collection.{ mutable, immutable, generic }
  
  def checkIdentity[A](xs: immutable.IndexedSeq[A]) = assert(xs.toIndexedSeq eq xs)
  
  def main(args: Array[String]): Unit = {
    checkIdentity(immutable.Vector(1 to 10: _*))
    checkIdentity(1 to 10 toIndexedSeq)
  }
}