blob: 8542e35be26ad929b6cf3e58ba9091efbd8bdba2 [file]
// IGNORE_BACKEND_FIR: JVM_IR
enum class Test(val x: String, val closure1: () -> String) {
FOO("O", { FOO.x }) {
override val y: String = "K"
val closure2 = { y } // Implicit 'FOO'
override val z: String = closure2()
};
abstract val y: String
abstract val z: String
fun test() = closure1() + z
}
fun box() = Test.FOO.test()