according to this answer (<https://stackoverflow.c...
# announcements
e
according to this answer (https://stackoverflow.com/questions/39679180/kotlin-call-java-method-with-classt-argument) by @apatrida:
The error message could be clearer to say "only classes without generic parameters are allowed on the left side of ::"
ArrayList<*>::class
changes nothing though
p
ArrayList
is a class and
ArrayList<Int>
is a type 🙂
e
uh,
ArrayList::class
thanks Pavlo
btw, why
Array<VkCommandBuffer>::class
works instead?
p
For arrays it is a bit more complicated as
Array<VkCommandBuffer>
is
VkCommandBuffer[]
in Java. So it is not the same generic.