CamilleBC
11/08/2018, 9:55 AMvararg
as a parameter. How can I use those as parameter for another function inside the first that also takes a vararg
as parameter? Here's the message I get:
Type mismatch.
Required: FictionData
Found: Array<out FictionData>
Here is the code:
fun insertFiction(vararg fictionData: FictionData) {
functionThatTakesAVarargAsParameter( fictionData )
}