Open
Description
Reproduction steps
Scala version: (2.13.12)
import reflect.ClassTag
def main(args: Array[String]): Unit = {
test(Array("jan", "feb", "mar", "april", "may", "jun"))
}
def test[T: ClassTag](seq: Seq[T]): Unit = {
println(seq)
}
Problem
Compile not pass
overloaded method apply with alternatives:
(x: Unit,xs: Unit*)Array[Unit] <and>
(x: Double,xs: Double*)Array[Double] <and>
(x: Float,xs: Float*)Array[Float] <and>
(x: Long,xs: Long*)Array[Long] <and>
(x: Int,xs: Int*)Array[Int] <and>
(x: Char,xs: Char*)Array[Char] <and>
(x: Short,xs: Short*)Array[Short] <and>
(x: Byte,xs: Byte*)Array[Byte] <and>
(x: Boolean,xs: Boolean*)Array[Boolean]
cannot be applied to (String, String, String, String, String, String)
test(Array("jan", "feb", "mar", "april", "may", "jun"))