Join Slack
Powered by
Array itself is mutable, so you can’t assign Array...
# getting-started
o
orangy
09/14/2016, 6:01 PM
Array itself is mutable, so you can’t assign Array<Smth> to Array<*>, otherwise you could put SmthElse into that array, and it would throw in runtime. What you need to do is carefully craft variance in your types.
Open in Slack
Previous
Next