Files
kotlin-fork/compiler/testData/ir/irText/declarations/kt35550.fir.kt.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

24 lines
356 B
Plaintext
Vendored

interface I {
val <T : Any?> T.id: T
get(): T {
return <this>
}
}
class A : I {
constructor(i: I) /* primary */ {
super/*Any*/()
/* <init>() */
}
override val <T : Any?> T.id: T
override get(): T {
return (<this>.#$$delegate_0, <this>).<get-id><T>()
}
private /* final field */ val $$delegate_0: I = i
}