Hi everyone! How do i declare kotlin equivalent of...
# announcements
m
Hi everyone! How do i declare kotlin equivalent of java's List<? extends SomeClass> ?
e
List<out SomeClass>
?
k
And that's the declaration site variance too, so just
List<SomeClass>
is the same thing.
The exact java equivalent would be
MutableList<out SomeClass>
.
👍 2
m
Thanks @edwardwongtl @karelpeeters!