summaryrefslogblamecommitdiff
path: root/test/files/run/collections-toSelf.scala
blob: 2adbc22af7fc47fe9fe4f8b2a4b30ea94cb7c2b1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                          
  





                                         
object Test {
  val map = Map(1 -> 2)
  val set = Set(1, 2)
  val seq = collection.immutable.Seq(1, 2)
  
  def main(args: Array[String]): Unit = {
    assert(map.toMap eq map)
    assert(set.toSet eq set)
    assert(seq.toSeq eq seq)
  }
}