I need to be able to use the enum values as compile-time constants in order to be able to use them in annotations. what’s the best way to do that? here’s what i came up but still ugly.. :
const val ENUM1_CONSTANT : Int = 1
enum class Permission(val id: Int) {
ENUM1(ENUM1_CONSTANT)
}