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)
40 lines
788 B
Kotlin
Vendored
40 lines
788 B
Kotlin
Vendored
class Test : J {
|
|
constructor(j: J) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
private val j: J
|
|
field = j
|
|
private get
|
|
|
|
override fun takeNotNull(@NotNull x: @EnhancedNullability String) {
|
|
<this>.#j.takeNotNull(x = x)
|
|
}
|
|
|
|
override fun takeNullable(@Nullable x: String?) {
|
|
<this>.#j.takeNullable(x = x)
|
|
}
|
|
|
|
override fun takeFlexible(x: @FlexibleNullability String?) {
|
|
<this>.#j.takeFlexible(x = x)
|
|
}
|
|
|
|
@NotNull
|
|
override fun returnNotNull(): @EnhancedNullability String {
|
|
return <this>.#j.returnNotNull() /*!! String */
|
|
}
|
|
|
|
@Nullable
|
|
override fun returnNullable(): String? {
|
|
return <this>.#j.returnNullable()
|
|
}
|
|
|
|
override fun returnsFlexible(): @FlexibleNullability String? {
|
|
return <this>.#j.returnsFlexible()
|
|
}
|
|
|
|
}
|
|
|