enighma
04/13/2023, 6:50 PMKProperty1
is an enum?
I thought something like this out to work:
prop.returnType::class.isSubclassOf(Enum::class)
ephemient
04/18/2023, 5:15 PMreturnType::class
isn't what you seem to think it isephemient
04/18/2023, 5:16 PMKType::class
, not the KClass
of the typeephemient
04/18/2023, 5:17 PMprop.returnType.isSubtypeOf(typeOf<Enum<*>>())
enighma
04/19/2023, 4:41 PM