mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
11 lines
282 B
Kotlin
Vendored
11 lines
282 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
var result = "fail"
|
|
|
|
open class Base(val o: String, val k: String)
|
|
|
|
fun box(): String {
|
|
val obj1 = object : Base(k = { result = "O"; "K"}() , o = {result += "K"; "O"}()) {}
|
|
|
|
if (result != "OK") return "fail $result"
|
|
return obj1.o + obj1.k
|
|
} |