Join Slack
Powered by
You can add a constraint to the `T` parameter. Oth...
# announcements
d
diesieben07
03/20/2018, 11:32 AM
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?
Open in Slack
Previous
Next