Files
kotlin/compiler/testData/codegen/box/callableReference/function/enumValueOfMethod.kt
2018-07-23 15:08:18 +03:00

11 lines
186 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_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"
}