Join Slack
Powered by
<@U5UU34LPK> <@U22BBEZQU> ~i wouldn't say its more...
# announcements
a
Andreas Sinz
03/04/2018, 3:22 PM
@karelpeeters
@jdiaz
i wouldn't say its more specific, because more values are of type
Any
compared to
String
.
What you are talking about is invariance.
MutableList<String>
cannot be cast into
MutableList<Any>
, but
List<out T>
(using variance
out
) allows you to cast
List<String>
into
List<Any>
2
Views
Open in Slack
Previous
Next