https://kotlinlang.org logo
#android
Title
# android
l

Lilly

07/09/2020, 2:54 PM
Hi, I'm looking for the kotlin equivalent of
Copy code
Map<Class<? extends AbstractCode>
I tried
Class<? : AbstractCode>
and
Class<Any : AbstractCode>
.Can someone help me please?
m

marstran

07/09/2020, 2:58 PM
Try using the
out
modifier:
Copy code
Class<out AbstractCode>
l

Lilly

07/09/2020, 3:19 PM
Thanks boss