[K/N] Intrinsify enumEntries<T>

^KT-59711
This commit is contained in:
Pavel Kunyavskiy
2023-07-06 17:16:06 +02:00
committed by Space Team
parent 26b0b02553
commit 9cbd55aa72
21 changed files with 138 additions and 14 deletions
@@ -0,0 +1,15 @@
// !LANGUAGE: -EnumEntries
// IGNORE_BACKEND: JS
// WITH_STDLIB
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
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"
}