aboutsummaryrefslogtreecommitdiff
path: root/tests/pos-scala2/t2030.scala
blob: cbd62babae039de6ca9419cce9ec36ee7a6cf0a4 (plain) (blame)
1
2
3
4
5
6
7
8
import scala.collection.immutable._

object Test extends dotty.runtime.LegacyApp {
  val res0 = TreeSet(1, 2, 3, 4, 5, 6)
  val res1 = res0.map(x => x)
  println(res0.toList == res1.toList)
  println(res1.getClass)
}