Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
emptyEnumValuesValueOf.kt
blob: aa25035f71508154690714c41aa90c0af4da61bf [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
enum
class
Empty
fun box
():
String
{
if
(
Empty
.
values
().
size
!=
0
)
return
"Fail: ${Empty.values()}"
try
{
val found
=
Empty
.
valueOf
(
"nonExistentEntry"
)
return
"Fail: $found"
}
catch
(
e
:
Exception
)
{
return
"OK"
}
}