FIR: Serialize members originated from delegation

This commit is contained in:
Denis.Zharkov
2021-03-30 11:02:09 +03:00
parent a130b110f1
commit 4d3825a824
12 changed files with 117 additions and 16 deletions
@@ -0,0 +1,16 @@
// MODULE: lib
// FILE: lib.kt
interface A {
fun foo(): String
}
abstract class B(a: A) : A by a
// MODULE: main(lib)
// FILE: main.kt
class AImpl : A {
override fun foo(): String = "OK"
}
class C : B(AImpl())
fun box(): String = C().foo()