Files
kotlin-fork/compiler/testData/codegen/box/enum/enumEntriesIntrinsicWithoutFeature.kt
T
Ilya Gorbunov 86d5e83f4b [stdlib] Remove bootstrap implementation of enumEntriesIntrinsic
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>
2024-02-23 05:50:37 +00:00

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"
}