Files
kotlin/compiler/testData/codegen/box/callableReference/function/enumValueOfMethod.kt
2016-11-09 21:41:12 +03:00

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"
}