this doesnt explain why `Array<VkCommandBuffer&...
# announcements
e
this doesnt explain why
Array<VkCommandBuffer>::class
works flawless
@karelpeeters what were you writing? (sorry, needing quick inputs)
k
Haha I was going to say that it looks like this should indeed just work with
reified
parameters.
🧌 1
e
so, this doesnt make sense you too
I have always had conflictual relationship with
reified
and generics.. 😄
k
There's this issue but it looks like they went too far: https://youtrack.jetbrains.com/issue/KT-8408
e
ah, so it's a bug 😄
k
Ah wait you're saying that
ArrayList<C>:class
doesn't work? I thought the array one was wrong.
e
anyway, it looks like
ArrayList::class
works
k
That it does behave as I would expect, what do you want
ArrayList<C>:class
to do?
d
This works for arrays, because Arrays are special on the JVM.
Array<String>
is a different class than
Array<Any>
👍 1
This is not the case for
ArrayList<String>
/
ArrayList<Any>
e
Array<String>
is a different class than
Array<Any>
wait what
can you elaborate?
d
String[]
vs
Object[]
in Java.
The two are separate classes