David R.
02/21/2018, 3:15 PMClass<Enum> enumType = type.getContentType().getRawClass() as Class<Enum>
EnumSet.noneOf(enumType)
However, the kotlin version does not like the types if implemented as followed
val enumType = type.contentType.rawClass as Class<Enum<*>>
EnumSet.noneOf(enumType)
The error kotlin displays on the noneOf call is about Enum<*> not being a subtype of Enum<Enum<*>>. Is there any way to make this work? Thanks!diesieben07
02/21/2018, 3:42 PMClass<Nothing>
should work.David R.
02/21/2018, 4:01 PMjoelpedraza
02/21/2018, 4:04 PMemptySet<Nothing>()
?David R.
02/21/2018, 4:16 PM