summaryrefslogtreecommitdiff
path: root/test/files/pos/t8743.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t8743.scala')
-rw-r--r--test/files/pos/t8743.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t8743.scala b/test/files/pos/t8743.scala
new file mode 100644
index 0000000000..03b0cd7044
--- /dev/null
+++ b/test/files/pos/t8743.scala
@@ -0,0 +1,15 @@
+import annotation.varargs
+
+object VarArgs {
+ @varargs
+ def foo[A](x: A, xs: String*): A = ???
+
+ @varargs
+ def bar[A](x: List[A], xs: String*): A = ???
+
+ @varargs
+ def baz[A](x: List[A], xs: String*): A = ???
+
+ @varargs
+ def boz[A](x: A, xs: String*): Nothing = ???
+}