https://kotlinlang.org logo
g

Geir

10/23/2017, 10:05 PM
Hi, I'm trying to create an instance of a Java class which has a
(Class<? extends Enum>)
-constructor. I'd like to pass my Kotlin enum, but it won't work. I guess it's because Kotlin enums don't extend java.lang.Enum.. Is there an easy way to work around that without changing the external library?