Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationInInterface.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

21 lines
527 B
Plaintext
Vendored

FILE: delegationInInterface.kt
public final class A : R|kotlin/Any| {
public constructor(): R|A| {
super<R|kotlin/Any|>()
}
}
public abstract interface B : R|A| {
local final field <$$delegate_0>: R|A| = <Unresolved name: a>#
public abstract val a: R|A|
public get(): R|A|
}
public final val test: R|A| = R|/A.A|()
public get(): R|A|
public abstract interface C : R|A| {
local final field <$$delegate_0>: R|A| = R|/test|
}