diff options
Diffstat (limited to 'test/files/run/collections-toSelf.scala')
-rw-r--r-- | test/files/run/collections-toSelf.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/collections-toSelf.scala b/test/files/run/collections-toSelf.scala new file mode 100644 index 0000000000..02f1dd6a95 --- /dev/null +++ b/test/files/run/collections-toSelf.scala @@ -0,0 +1,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) + } +} |