7813bb35cf
After a generation of fake overrides some code may still to refer old symbols from declaration storage (like computation of overridden symbols for lazy functions), so we need to remap those symbols using information from IR f/o generator
25 lines
285 B
Kotlin
Vendored
25 lines
285 B
Kotlin
Vendored
// DUMP_IR
|
|
// FIR_IDENTICAL
|
|
|
|
abstract class A {
|
|
abstract val x: String
|
|
}
|
|
|
|
interface B {
|
|
var x: String
|
|
}
|
|
|
|
abstract class C : A(), B
|
|
|
|
class D(override var x: String) : C()
|
|
|
|
fun test(c: C) {
|
|
c.x = "OK"
|
|
}
|
|
|
|
fun box(): String {
|
|
val d = D("Fail")
|
|
test(d)
|
|
return d.x
|
|
}
|