Files
kotlin-fork/compiler/testData/codegen/box/enum/kt46605.kt
T
2021-05-18 16:55:38 +02:00

18 lines
233 B
Kotlin
Vendored

fun call(f: () -> Unit) {
f()
}
enum class E(val f: () -> String) {
A({
var value = "Fail"
call {
value = "OK"
}
value
})
}
fun box(): String {
return E.A.f()
}