We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f78ddd commit e9a6fbbCopy full SHA for e9a6fbb
test/files/jvm/varargs/VaClass.scala
@@ -9,5 +9,7 @@ class VaClass {
9
@varargs def vs(a: Int, b: String*) = println(a + b.length)
10
@varargs def vi(a: Int, b: Int*) = println(a + b.sum)
11
@varargs def vt[T](a: Int, b: T*) = println(a + b.length)
12
- @varargs def vt1[T](a: Int, b: T*): T = b.head
+
13
+ // TODO remove type bound after fixing SI-8786, see also https://github.com/scala/scala/pull/3961
14
+ @varargs def vt1[T <: String](a: Int, b: T*): T = b.head
15
}
0 commit comments