Kotlin – obtaining an instance of both KProperty1 and CallableReference through reflection
I’m working with a third-party library that has a function which expects an argument of type KProperty1<T, V>
, and casts it to an instance of CallableReference
internally. I need to acquire a reference to a class member through reflection that is an instance of both KProperty1
and CallableReference
.
Kotlin – obtaining an instance of both `KProperty1` and `CallableReference` through reflection
I’m working with a third-party library that has a function which expects an argument of type KProperty1<T, V>
, and casts it to an instance of CallableReference
internally. I need to acquire a reference to a class member through reflection that is an instance of both KProperty1
and CallableReference
.