teedee
09/07/2016, 4:38 PMinterface Flag {
val value: Int
}
inline fun <reified T: Enum<T>, Flag> fromBitFlags(bitFlags: BitFlags) {
val test = EnumSet.allOf(T::class.java)
for (t in test) {
t.value
}
}
Something like this doesn't work as well though I'm not sure why it doesn't work