9cbd55aa72
^KT-59711
15 lines
321 B
Kotlin
Vendored
15 lines
321 B
Kotlin
Vendored
// !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"
|
|
} |