blob: 42ce62ece8f6b517be5af902aced623a03769808 [file]
// KT-55828
// IGNORE_BACKEND_K2: NATIVE
enum class E {
OK, NOT_OK
}
interface I {
fun f(e: E): String
}
val obj = object: I {
override fun f(e: E) = when(e) {
E.OK -> "OK"
E.NOT_OK -> "NOT OK"
}
}
fun box() = obj.f(E.OK)