Hello, how to check if enum variable which is of t...
# multiplatform
j
Hello, how to check if enum variable which is of type
KClass<out Enum<*>>
implement specific interface, since I need to access its methods? It worked via
is
when I used
Class
instead of
KClass
. I could use
isSubclassOf
but this does not perform casting and casting manually using
as
throws a
ClassCastExceptionError
. Thanks.