Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
eeaff786f0d0a86b7b827da0028bbafe287d3c04
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
enumEntriesInCompanion.kt
blob: a6534e1f4f5941659a7a84266458f23c48198144 [
file
]
// LANGUAGE: +EnumEntries
// WITH_STDLIB
enum
class
MyEnum
{
OK
,
NOPE
;
companion
object
{
@OptIn
(
ExperimentalStdlibApi
::
class
)
val ok
=
entries
[
0
]
}
}
fun box
():
String
{
return
MyEnum
.
ok
.
toString
()
}