Sam
10/07/2022, 1:18 PMt: T
, why does t::class
return KClass<out T>
and not KClass<T>
?Sam
10/07/2022, 1:18 PMt::class
is the exact class of t
, not a superclass?Sam
10/07/2022, 1:19 PMt.javaClass.kotlin
does give `KClass<T>`…Sam
10/07/2022, 1:31 PMSam
10/07/2022, 2:00 PMT
is always the exact type of t
, but really T
could be any supertype of the actual type.