Why doesn't the vararg type checking work here? <h...
# announcements
p
Why doesn't the vararg type checking work here? https://pl.kotl.in/opTRtUiQ7 (See
mix
variable)
i
Have you checked the actual types of the declared variables? I believe they are all
List<Any>
because
T
is inferred to
Any
in all of these cases. You pass a companion object as a receiver and values of some other types (String or Int) as parameters.
Int.Companion
and
Int
have
Any
as the common supertype.