aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t2667.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t2667.scala')
-rw-r--r--tests/untried/pos/t2667.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/pos/t2667.scala b/tests/untried/pos/t2667.scala
new file mode 100644
index 000000000..7f1f36f00
--- /dev/null
+++ b/tests/untried/pos/t2667.scala
@@ -0,0 +1,6 @@
+object A {
+ def foo(x: Int, y: Int*): Int = 45
+ def foo[T](x: T*): Int = 55
+
+ val x: Unit = foo(23, 23f)
+}