if I know that this Enum extends also a specific i...
# announcements
e
if I know that this Enum extends also a specific interface, is there a way to express it in its type?
val values: Array<out Enum<*>> = Enum::class.java.enumConstants
d
Might be better off making an Array of the interface.
e
you mean casting?
d
yes
k
If you're working with generics it's possible to express intersection types, but in general not.
e
ok