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