mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
261 B
Kotlin
Vendored
14 lines
261 B
Kotlin
Vendored
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"
|
|
}
|
|
}
|