86d5e83f4b
It should have been already implemented as intrinsic in all backends. Do not test enumEntries intrinsic in the old JVM BE. KT-53154 Co-authored-by: Alexander Udalov <alexander.udalov@jetbrains.com>
14 lines
287 B
Kotlin
Vendored
14 lines
287 B
Kotlin
Vendored
// !LANGUAGE: -EnumEntries
|
|
// IGNORE_BACKEND: JS_IR, JS_IR_ES6, WASM, JVM
|
|
// WITH_STDLIB
|
|
|
|
import kotlin.enums.*
|
|
|
|
enum class E { A, B, C }
|
|
|
|
@OptIn(kotlin.ExperimentalStdlibApi::class)
|
|
fun box() : String {
|
|
if (enumEntries<E>() != listOf(E.A, E.B, E.C)) return "FAIL"
|
|
return "OK"
|
|
}
|