Can I get the receiver type name from a `KProperty...
# announcements
r
Can I get the receiver type name from a
KProperty1<*, *>
?
Maybe
parameters.first()
?
d
instanceParameter?.type
r
I don’t see
instanceParameter
on
KProperty1
d
You need the full reflection
r
Meh
d
prop.javaGetter?.declaringClass
can work, too
That should not require the full reflection
r
I need both the property name and the receiver type name, I thought using
KProperty1
could give me both. If not, then I can jsute have the receiver type name passed as a String
d
name
should also be available without full reflection
r
Well I need the same for a function and I need full reflection for that it seems
d
No. You should be able to call
name
on a
KFunction
even without full reflection
r
I need to pass a parameter of type
KFunction1
in this case because I also need to call it, and it does’t look like I can even import it