aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/collections.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-10-27 18:33:57 +0100
committerMartin Odersky <odersky@gmail.com>2013-10-27 18:33:57 +0100
commit52a8a0aec9da8a4eaa3faf95ec7acd3ecfbabf53 (patch)
tree7f029c717a8f8ea0787f669412ce2047e68a630d /tests/pos/collections.scala
parent41e7d9d46177650d23447f99989e8347aca56e71 (diff)
downloaddotty-52a8a0aec9da8a4eaa3faf95ec7acd3ecfbabf53.tar.gz
dotty-52a8a0aec9da8a4eaa3faf95ec7acd3ecfbabf53.tar.bz2
dotty-52a8a0aec9da8a4eaa3faf95ec7acd3ecfbabf53.zip
Fixed unpickling of polymorphic constructors.
Constructors of parameterized classes now get polymorphic types when unpickled, as is the case when defining them or when reading them from a Java classfile. This caused a ripple of other faults which this commit also fixes.
Diffstat (limited to 'tests/pos/collections.scala')
-rw-r--r--tests/pos/collections.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/pos/collections.scala b/tests/pos/collections.scala
index 0d00b91fe..e91a90a90 100644
--- a/tests/pos/collections.scala
+++ b/tests/pos/collections.scala
@@ -9,6 +9,7 @@ object collections {
val ints2 = 1 :: 2 :: Nil
val ints3: List[Int] = ints2
val f = (x: Int) => x + 1
+ val ints4: List[Int] = List(1, 2, 3, 5)
val ys = ints3 map (x => x + 1)
val zs = ys filter (y => y != 0)