e63ed03d19
Value parameters annotations are now handled consistently in factory functions creating this IrValueParameter instances. In before, it was handled in several different places, which leads to being sometimes lost, e.g. in LazyFirSimpleFunction. This caused original problem in interop checks. ^KT-58099
39 lines
787 B
Kotlin
Vendored
39 lines
787 B
Kotlin
Vendored
class Test : J {
|
|
constructor(j: J) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
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()
|
|
}
|
|
|
|
private val j: J
|
|
field = j
|
|
private get
|
|
|
|
}
|