If we pass in a list to a method that takes a variable number of arguments it works.
val testList = List("a", "b", "c")
def testMethod(str: String*): Seq[String] = str
testMethod(testList) // outputs WrappedArray(List("a", "b", "c"))
But if we pass in a list to a class constructor that takes a variable number of arguments, we get a type error.
val testList = List("a", "b", "c")
class TestClass(str: String*)
val t = new TestClass(testList)
// error: type mismatch
// found: List[String]
// required: [String]
Any idea how we can fix this?