You mean `Array<String>::class.java`? Is tha...
# announcements
d
You mean
Array<String>::class.java
? Is that the same as
String[].class
?
r
is the same
d
Another question 🙂: Is there any reason why it can't go into a
Array<Class<*>>
?
r
I assume Array and Class are both invariant which means what you assign to a variable of this type has to be of the same type as the one specified
you mean assign right? (or pass to a function etc.)
you can write
arrayOf<Class<*>>(Array<String>::class.java)
d
Thanks! That helped.. simple smile I guess Kotlin's type inference doesn't always handle things...