How do I get the KClass for the type of a property...
# announcements
s
How do I get the KClass for the type of a property ? Ie.
Copy code
data class Cls(val foo: String)

fun printType(){
    val kProperty1: KProperty1<Cls, String> = Cls::foo
    val fooClass : KClass<String> = kProperty1.????
}