You can add a constraint to the `T` parameter. Oth...
# announcements
d
You can add a constraint to the
T
parameter. Otherwise, if
Any
is okay, there is nothing wrong with
listOf(1).foo("bla")
. If you can call all the methods you need inside the function without unchecked casts, what's the problem?