I want to declare a list that holds KClasses that ...
# announcements
c
I want to declare a list that holds KClasses that extend Event, something like this:
Copy code
List<KClass<? extends Event>>
I can't figure out what the right syntax for this is though, can someone help?
p
List<KClass<out Event>>
I guess
c
ah that was it. I didn't quite understand the point of adding in/out keywords, will read up on them thanks.