diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-08 18:05:36 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-08 18:05:43 +0200 |
commit | 7645024a9c17c24d0c2facbc76cc250512d4fa91 (patch) | |
tree | 4c78255f998f071924047bd6be0e0c5064c77b21 /tests/pos | |
parent | 905c541ba39f667f8b08fae85cb875470e283492 (diff) | |
download | dotty-7645024a9c17c24d0c2facbc76cc250512d4fa91.tar.gz dotty-7645024a9c17c24d0c2facbc76cc250512d4fa91.tar.bz2 dotty-7645024a9c17c24d0c2facbc76cc250512d4fa91.zip |
Fix #547: Vararg overload
When comparing to types in isAsSpecific, onvert repeated parameters to their underlying type
only if both types are vararg methods. This mimics scalac behavior.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/varargs.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pos/varargs.scala b/tests/pos/varargs.scala index 616456616..bbfcac841 100644 --- a/tests/pos/varargs.scala +++ b/tests/pos/varargs.scala @@ -10,4 +10,8 @@ object varargs { g(Nil: _*) g(1) g() + + def f(x: Int): Unit = () + def f(x: Int*): Unit = () + f(1) } |