nils
10/02/2019, 5:17 PMSomeClass<Type>
into SomeClass<*>
). However, I'd expect type checks such as the one outlined below to correctly yield true
.
I'd like to ask if the below code snippet is a mistake on my end or if it's related to some kind of bug related to invariances. Thank you.Shane Myrick
10/02/2019, 5:44 PMjvmErasure
and comparing that instead. That might be a little better than your hacky approach
println(paramType.jvmErasure.isSubclassOf(SomeClass::class))
bdawg.io
10/04/2019, 11:28 PMparamKType
is an instance of KType
describing SomeClass<*>
, not an instance of SomeClass
itself