<Reflection Issues with Arrays> Hey all, I have a ...
# forum
r
Reflection Issues with Arrays Hey all, I have a problem when using reflections to create an instance of an object and then setting it as a member also through reflections. This problem only occurs with typed arrays. Here is a minimal viable code example showing my problem: import kotlin.reflect.KClass import kotlin.reflect.KMutableProperty import kotlin.reflect.full.createInstance import kotlin.reflect.full.memberProperties data class DataClassWithArray (var array: Array = arrayOf()) data class DataClass (var array:...