``` interface Flag { val value: Int } inline fun...
# getting-started
t
Copy code
interface 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