I want to get a link to the KClass executable variable. I looked at the documentation for classes and reflections, but the documentation explains how to get a static link to KClass (e.g. String::classfor String)
I need a KClass variable to execute. This is not like compiling:
fun test(x: Any) {
val klazz = x::class
}
How to get KClassfrom xin the above example?
source
share