Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/superCallWithDelegation.fir.txt
T
Mikhail Glukhikh d4b0688690 FIR: introduce delegate field initializers
Before this commit we initialized delegate fields in primary constructor,
that could provoke NPE in case delegate is used in initializer of
some property backing field.
Now we initialize delegate fields directly instead.
2021-02-08 14:28:27 +03: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|>()
}
local 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|()
}
}