mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
256 B
Kotlin
Vendored
13 lines
256 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
enum class E {
|
|
ENTRY
|
|
}
|
|
|
|
fun box(): String {
|
|
val f = E::valueOf
|
|
val result = f("ENTRY")
|
|
return if (result == E.ENTRY) "OK" else "Fail $result"
|
|
}
|