aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2500.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-05-16 11:55:36 +0200
committerMartin Odersky <odersky@gmail.com>2014-05-30 14:38:00 +0200
commite42388682094c63055440c8915d8215935007584 (patch)
treea2a392d9ddc052b282c84b8c1c4a1a4793872679 /tests/pos/t2500.scala
parent05668169eca68bbdc777fbf698f92e256f8e50a9 (diff)
downloaddotty-e42388682094c63055440c8915d8215935007584.tar.gz
dotty-e42388682094c63055440c8915d8215935007584.tar.bz2
dotty-e42388682094c63055440c8915d8215935007584.zip
Added t25xx tests
Diffstat (limited to 'tests/pos/t2500.scala')
-rw-r--r--tests/pos/t2500.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/t2500.scala b/tests/pos/t2500.scala
new file mode 100644
index 000000000..d0ff99a93
--- /dev/null
+++ b/tests/pos/t2500.scala
@@ -0,0 +1,6 @@
+object Test {
+ import scala.collection._
+ ((Map(1 -> "a", 2 -> "b"): collection.Map[Int, String]) map identity[(Int, String)]) : scala.collection.Map[Int,String]
+ ((SortedMap(1 -> "a", 2 -> "b"): collection.SortedMap[Int, String]) map identity[(Int, String)]): scala.collection.SortedMap[Int,String]
+ ((SortedSet(1, 2): collection.SortedSet[Int]) map identity[Int]): scala.collection.SortedSet[Int]
+}