895a8ff149
No forward compatibility yet, with old klib IR linker will fail. ^KT-53324
16 lines
278 B
Kotlin
Vendored
16 lines
278 B
Kotlin
Vendored
// !LANGUAGE: +EnumEntries
|
|
// TARGET_BACKEND: JVM_IR
|
|
// TARGET_BACKEND: NATIVE
|
|
// WITH_STDLIB
|
|
|
|
enum class MyEnum {
|
|
OK, NOPE
|
|
}
|
|
|
|
@OptIn(ExperimentalStdlibApi::class)
|
|
fun box(): String {
|
|
val entries = MyEnum.entries
|
|
val entry = entries[0]
|
|
return entry.toString()
|
|
}
|