Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
enumEntries.kt
blob: 29d314e7cb46d2a98ec99d8cc4b72eab83d21447 [
file
]
// !LANGUAGE: +EnumEntries
// IGNORE_BACKEND: JS, JVM
// FULL_JDK
// WITH_STDLIB
enum
class
MyEnum
{
OK
,
NOPE
}
@OptIn
(
ExperimentalStdlibApi
::
class
)
fun box
():
String
{
val entries
=
MyEnum
.
entries
val entry
=
entries
[
0
]
return
entry
.
toString
()
}