[FIR2IR] Provide remapped f/o symbols to declaration storage

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
This commit is contained in:
Dmitriy Novozhilov
2023-12-06 13:11:44 +02:00
committed by Space Team
parent 97cf62e291
commit 7813bb35cf
31 changed files with 408 additions and 11 deletions
@@ -0,0 +1,24 @@
// 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
}