It’s a little bit more complicated. KClass is an entity describing something declared. Type of property is not the same thing, e.g. it can be array of something, or type with generic arguments, be nullable or not, etc. You have
returnType
on KProperty, which gets KType. Yet it’s incomplete API, but you can get
javaType
from there and explore it.