25 lines
529 B
Plaintext
Vendored
25 lines
529 B
Plaintext
Vendored
enum class MyEnum : Enum<MyEnum> {
|
|
private constructor() /* primary */ {
|
|
super/*Enum*/<MyEnum>()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
Ok = MyEnum()
|
|
|
|
Nope = MyEnum()
|
|
|
|
fun values(): Array<MyEnum> /* Synthetic body for ENUM_VALUES */
|
|
|
|
fun valueOf(value: String): MyEnum /* Synthetic body for ENUM_VALUEOF */
|
|
|
|
val entries: EnumEntries<MyEnum>
|
|
get(): EnumEntries<MyEnum> /* Synthetic body for ENUM_ENTRIES */
|
|
|
|
}
|
|
|
|
@OptIn(markerClass = [ExperimentalStdlibApi::class])
|
|
fun box(): EnumEntries<MyEnum> {
|
|
return <get-entries>()
|
|
}
|