summaryrefslogtreecommitdiff
path: root/test/files/run/t3603.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-07-09 11:31:34 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-07-09 11:31:34 +0000
commit0394b8426ff8ad41f0455c5318518d1a84540290 (patch)
treecdeea67c12a8750d35c6073a832eab3f7cb25f9f /test/files/run/t3603.scala
parentc66898e5be37d88efd75af76f5a078820ae6c4e0 (diff)
downloadscala-0394b8426ff8ad41f0455c5318518d1a84540290.tar.gz
scala-0394b8426ff8ad41f0455c5318518d1a84540290.tar.bz2
scala-0394b8426ff8ad41f0455c5318518d1a84540290.zip
closes #3603. no review
Diffstat (limited to 'test/files/run/t3603.scala')
-rw-r--r--test/files/run/t3603.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t3603.scala b/test/files/run/t3603.scala
new file mode 100644
index 0000000000..a89cb7080a
--- /dev/null
+++ b/test/files/run/t3603.scala
@@ -0,0 +1,18 @@
+
+
+
+object Test {
+
+ def main(args: Array[String]) {
+ import collection.immutable._
+
+ val intmap = IntMap(1 -> 1, 2 -> 2)
+ val intres = intmap.map { case (a, b) => (a, b.toString) }
+ assert(intres.isInstanceOf[IntMap[_]])
+
+ val longmap = LongMap(1L -> 1, 2L -> 2)
+ val longres = longmap.map { case (a, b) => (a, b.toString) }
+ assert(longres.isInstanceOf[LongMap[_]])
+ }
+
+}