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