Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/superCallWithDelegation.fir.txt
T
Steven Schäfer a7ba081d22 FIR: Fix interface delegation ABI
- Unifies the name of the `$$delegate_<n>` field between K1 and K2.
- Make the `$$delegate_<n>` field private
2022-12-02 21:54:18 +00:00

27 lines
663 B
Plaintext
Vendored

FILE: superCallWithDelegation.kt
public abstract interface A : R|kotlin/Any| {
public abstract fun foo(): R|kotlin/Unit|
}
public open class B : R|A| {
public constructor(a: R|A|): R|B| {
super<R|kotlin/Any|>()
}
private final field $$delegate_0: R|A| = R|<local>/a|
private final val a: R|A| = R|<local>/a|
private get(): R|A|
}
public final class C : R|B| {
public constructor(a: R|A|): R|C| {
super<R|B|>(R|<local>/a|)
}
public final override fun foo(): R|kotlin/Unit| {
this@R|/C|.super<R|B|>.R|/A.foo|()
}
}