Files
kotlin/compiler/testData/codegen/box/callableReference/function/enumValueOfMethod.kt
2019-11-19 11:00:09 +03:00

11 lines
190 B
Kotlin
Vendored

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