Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
a6417fc509e4365c1ed6addd914701510995cdb2
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
emptyEnumValuesValueOf.kt
blob: 6cad0c98a0462efad8d6ea50f1b493d99f1134dd [
file
] [
log
] [
blame
]
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"
}
}