mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
12 lines
211 B
Kotlin
Vendored
12 lines
211 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// IGNORE_BACKEND: JS_IR
|
|
enum class E {
|
|
ENTRY
|
|
}
|
|
|
|
fun box(): String {
|
|
val f = E::valueOf
|
|
val result = f("ENTRY")
|
|
return if (result == E.ENTRY) "OK" else "Fail $result"
|
|
}
|