mbickel
04/19/2018, 10:53 AMKClass.memberProperties - the docs say I get a Collection<KProperty1<T, *>>, but when I iterate this, the compiler infers KProperty1<out T, Any?>, which prevents me from calling it.get(this) on it. Anybody know why?udalov
memberProperties on a ::class literal, then it's a known problem: https://youtrack.jetbrains.com/issue/KT-16432udalov
A::class to KClass<A> manually :(mbickel
04/19/2018, 10:57 AMthis::class (which feels weird). Hmm, first time I see that out can be part of the type.mbickel
04/19/2018, 11:02 AMit.getter.call(this) does work. But both fail because I'm trying to access a private val. 😞udalov
udalov
isAccessible = true (which is subject to SecurityManager checks)mbickel
04/19/2018, 11:30 AMdata class anyway