summaryrefslogtreecommitdiff
path: root/test/files/jvm/t8786/A_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/t8786/A_1.scala')
-rw-r--r--test/files/jvm/t8786/A_1.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/jvm/t8786/A_1.scala b/test/files/jvm/t8786/A_1.scala
new file mode 100644
index 0000000000..13c0ad191d
--- /dev/null
+++ b/test/files/jvm/t8786/A_1.scala
@@ -0,0 +1,3 @@
+class A {
+ @annotation.varargs def foo[T](a: Int, b: T*): T = b.head
+}