`Child<String>` is not in general a subtype ...
# announcements
k
Child<String>
is not in general a subtype of
Parent<Any>
, go trough this page: https://kotlinlang.org/docs/reference/generics.html
r
And take your time going through it, co-, contra- and invariance can be a bit overwhelming on the first try. But it pays off once you've understood how it works.
h
Thanks, now it makes sense to me why this is not possible