mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
17 lines
357 B
Kotlin
Vendored
17 lines
357 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
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"
|
|
}
|
|
}
|