bcfafc601e
This change allows to revert adding `WITH_STDLIB` directive to tests which happened at `a9343aeb`. Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
15 lines
262 B
Kotlin
Vendored
15 lines
262 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"
|
|
}
|
|
}
|