FIR: Fix interface delegation ABI

- Unifies the name of the `$$delegate_<n>` field between K1 and K2.
- Make the `$$delegate_<n>` field private
This commit is contained in:
Steven Schäfer
2022-11-16 18:27:56 +01:00
committed by Space Team
parent 91749737f8
commit a7ba081d22
44 changed files with 232 additions and 233 deletions
@@ -15,18 +15,18 @@ class Test<TT : Any?> : IBase<TT> {
}
override fun foo(x: Int) {
<this>.#<$$delegate_0>.foo(x = x)
<this>.#$$delegate_0.foo(x = x)
}
override fun <X : Any?> qux(t: TT, x: X) {
<this>.#<$$delegate_0>.qux<X>(t = t, x = x)
<this>.#$$delegate_0.qux<X>(t = t, x = x)
}
override val bar: Int
override get(): Int {
return <this>.#<$$delegate_0>.<get-bar>()
return <this>.#$$delegate_0.<get-bar>()
}
local /* final field */ val <$$delegate_0>: IBase<TT> = impl
private /* final field */ val $$delegate_0: IBase<TT> = impl
}