https://kotlinlang.org logo
#reflect
Title
# reflect
d

damian

12/18/2015, 4:02 PM
Another thought along the same lines: having a way to check if a
KParameter
on a constructor is a declared as a
val
or
var
. Ideally, you would also be able to obtain the
KProperty
with something like
parameter.property
(
.property
?
.memberProperty
?
.classProperty
?). Maybe
KParameter.Kind.PROPERTY
would be required?