summaryrefslogtreecommitdiff
path: root/test/files/run/t10059/Test.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t10059/Test.scala')
-rw-r--r--test/files/run/t10059/Test.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t10059/Test.scala b/test/files/run/t10059/Test.scala
new file mode 100644
index 0000000000..7bbb623e74
--- /dev/null
+++ b/test/files/run/t10059/Test.scala
@@ -0,0 +1,9 @@
+abstract class T {
+ @annotation.varargs def m(l: Int*): Int
+}
+class C extends T {
+ override def m(l: Int*): Int = 1
+}
+object Test extends App {
+ assert(A.foo(new C) == 1)
+}