Is it possible to generically create an enum from ...
# stdlib
b
Is it possible to generically create an enum from an instance of
KType
(of the enum) and a string (of the enum value) ?
I know of
enumValueOf
, but that requires a
reified T
d
There is an open issue about it with a known workaround here: https://youtrack.jetbrains.com/issue/KT-14743 To go from
KType
to
KClass
use
classifier
1