blob: 19308e1d8c57d898698b01cb8b39fc87d6b869c2 (
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)
}
}
|