Florian
09/25/2019, 8:34 AMvararg
parameters are not allowed even if they have different typesLuca Nicoletti
09/25/2019, 8:46 AMvararg
must be the last parameter, so, having 2 of them is not possible as only the latter would really be the last oneFlorian
09/25/2019, 9:19 AMLuca Nicoletti
09/25/2019, 9:19 AMFlorian
09/25/2019, 1:49 PM1, 2, 3, "bla", "blubb"
to a function with an Int
and a String
vararg
Ruckus
09/25/2019, 3:27 PMinterface A
interface B
class AI : A
class BI : B
class AB : A, B
fun x(vararg a: A, vararg b: B) { ... }
x(AI(), AB(), BI())
Where is the division line?
That's a simple example. It can get far more complicated, and that's even without taking things like generics into account.Florian
09/25/2019, 9:24 PMRuckus
09/25/2019, 10:46 PMFlorian
09/26/2019, 6:50 AM