aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-05-08 18:05:36 +0200
committerMartin Odersky <odersky@gmail.com>2015-05-08 18:05:43 +0200
commit7645024a9c17c24d0c2facbc76cc250512d4fa91 (patch)
tree4c78255f998f071924047bd6be0e0c5064c77b21 /tests/pos
parent905c541ba39f667f8b08fae85cb875470e283492 (diff)
downloaddotty-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.scala4
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)
}