aboutsummaryrefslogblamecommitdiff
path: root/tests/run/collections-toSelf.scala
blob: 02f1dd6a95e347c7b4addce3e1396d9b7626601a (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)
  }
}