diff options
author | Martin Odersky <odersky@gmail.com> | 2013-10-27 18:33:57 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-10-27 18:33:57 +0100 |
commit | 52a8a0aec9da8a4eaa3faf95ec7acd3ecfbabf53 (patch) | |
tree | 7f029c717a8f8ea0787f669412ce2047e68a630d /tests/pos/varargs.scala | |
parent | 41e7d9d46177650d23447f99989e8347aca56e71 (diff) | |
download | dotty-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/varargs.scala')
-rw-r--r-- | tests/pos/varargs.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pos/varargs.scala b/tests/pos/varargs.scala index 4d5e68eb4..3739636b8 100644 --- a/tests/pos/varargs.scala +++ b/tests/pos/varargs.scala @@ -1,4 +1,5 @@ object varargs { + List(1, 2, 3) def g(x: Int*) = x.length g(1, 2, 3, 4) val x = if (true) 1 else 2 @@ -9,5 +10,4 @@ object varargs { g(Nil: _*) g(1) g() - List.apply(1, 2, 3) }
\ No newline at end of file |