3d6ec0ec75
Previously, creating a declaration with Fir2IrCallableDeclarationsGenerator/ Fir2IrClassifiersGenerator didn't guarantee that this declaration will be actually added to the list of parent class/file declarations, which lead to situations when FIR2IR created some declarations in the air (mostly fake-overrides)
23 lines
355 B
Kotlin
Vendored
23 lines
355 B
Kotlin
Vendored
interface I {
|
|
val <T : Any?> T.id: T
|
|
get(): T {
|
|
return <this>
|
|
}
|
|
|
|
}
|
|
|
|
class A : I {
|
|
constructor(i: I) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
private /* final field */ val $$delegate_0: I = i
|
|
override val <T : Any?> T.id: T
|
|
override get(): T {
|
|
return (<this>.#$$delegate_0, <this>).<get-id><T>()
|
|
}
|
|
|
|
}
|