AreYouACollection_.txt
# reflect
p
AreYouACollection_.txt
m
Why is
checkType
generic? When using the proper type you will see that
memberProperties
is a collection of
KProperty
. To get the
KClass
of each one you'd have to do something like
property.valueParameters.single().type.classifier as? KClass<*>
Then you can use that one to check whether it is a Collection.