FIR2IR: add implicit NOT_NULL cast if needed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
eeda48e63e
commit
46cc01602e
+1
-1
@@ -1,5 +1,5 @@
|
||||
public open class ModalityOfFakeOverrides : R|java/util/AbstractList<ft<kotlin/String, kotlin/String?>!>| {
|
||||
@R|java/lang/Override|() @R|org/jetbrains/annotations/NotNull|() public open operator fun get(index: R|kotlin/Int|): R|kotlin/String|
|
||||
@R|java/lang/Override|() @R|org/jetbrains/annotations/NotNull|() public open operator fun get(index: R|kotlin/Int|): R|@EnhancedNullability kotlin/String|
|
||||
|
||||
@R|java/lang/Override|() public open fun size(): R|kotlin/Int|
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
public abstract interface LoadIterableWithNullability<T : R|ft<kotlin/Any, kotlin/Any?>!|> : R|kotlin/Any| {
|
||||
@R|org/jetbrains/annotations/NotNull|() @R|kotlin/annotations/jvm/Mutable|() public abstract fun getIterable(): R|kotlin/collections/MutableIterable<ft<T, T?>!>|
|
||||
@R|org/jetbrains/annotations/NotNull|() @R|kotlin/annotations/jvm/Mutable|() public abstract fun getIterable(): R|@EnhancedNullability kotlin/collections/MutableIterable<ft<T, T?>!>|
|
||||
|
||||
public abstract fun setIterable(@R|kotlin/annotations/jvm/Mutable|() @R|org/jetbrains/annotations/NotNull|() Iterable: R|kotlin/collections/MutableIterable<ft<T, T?>!>|): R|kotlin/Unit|
|
||||
public abstract fun setIterable(@R|kotlin/annotations/jvm/Mutable|() @R|org/jetbrains/annotations/NotNull|() Iterable: R|@EnhancedNullability kotlin/collections/MutableIterable<ft<T, T?>!>|): R|kotlin/Unit|
|
||||
|
||||
@R|org/jetbrains/annotations/NotNull|() @R|kotlin/annotations/jvm/ReadOnly|() public abstract fun getReadOnlyIterable(): R|kotlin/collections/Iterable<ft<T, T?>!>|
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
public abstract interface ReadOnlyExtendsWildcard : R|kotlin/Any| {
|
||||
public abstract fun bar(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(@R|kotlin/annotations/jvm/ReadOnly|() x: R|ft<kotlin/collections/List<out ft<kotlin/CharSequence, kotlin/CharSequence?>!>, kotlin/collections/List<out ft<kotlin/CharSequence, kotlin/CharSequence?>!>?>!|, @R|org/jetbrains/annotations/NotNull|() y: R|kotlin/Comparable<in ft<kotlin/String, kotlin/String?>!>|): R|kotlin/Unit|
|
||||
public abstract fun foo(@R|kotlin/annotations/jvm/ReadOnly|() x: R|ft<kotlin/collections/List<out ft<kotlin/CharSequence, kotlin/CharSequence?>!>, kotlin/collections/List<out ft<kotlin/CharSequence, kotlin/CharSequence?>!>?>!|, @R|org/jetbrains/annotations/NotNull|() y: R|@EnhancedNullability kotlin/Comparable<in ft<kotlin/String, kotlin/String?>!>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public open class NotNullField : R|kotlin/Any| {
|
||||
@R|org/jetbrains/annotations/NotNull|() public open field hi: R|kotlin/String|
|
||||
@R|org/jetbrains/annotations/NotNull|() public open field hi: R|@EnhancedNullability kotlin/String|
|
||||
|
||||
public constructor(): R|test/NotNullField|
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public open class NotNullIntArray : R|kotlin/Any| {
|
||||
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|kotlin/IntArray|
|
||||
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|@EnhancedNullability kotlin/IntArray|
|
||||
|
||||
public constructor(): R|test/NotNullIntArray|
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public open class NotNullMethod : R|kotlin/Any| {
|
||||
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|kotlin/String|
|
||||
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|@EnhancedNullability kotlin/String|
|
||||
|
||||
public constructor(): R|test/NotNullMethod|
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public open class NotNullObjectArray : R|kotlin/Any| {
|
||||
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|ft<kotlin/Array<ft<kotlin/Any, kotlin/Any?>!>, kotlin/Array<out ft<kotlin/Any, kotlin/Any?>!>>|
|
||||
@R|org/jetbrains/annotations/NotNull|() public open fun hi(): R|ft<@EnhancedNullability kotlin/Array<ft<kotlin/Any, kotlin/Any?>!>, kotlin/Array<out ft<kotlin/Any, kotlin/Any?>!>>|
|
||||
|
||||
public constructor(): R|test/NotNullObjectArray|
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
public open class NotNullParameter : R|kotlin/Any| {
|
||||
public open fun hi(@R|org/jetbrains/annotations/NotNull|() param: R|kotlin/String|): R|kotlin/Unit|
|
||||
public open fun hi(@R|org/jetbrains/annotations/NotNull|() param: R|@EnhancedNullability kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|test/NotNullParameter|
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
public open class ConstructorWithAnnotations : R|kotlin/Any| {
|
||||
public constructor(r: R|ft<java/lang/Runnable, java/lang/Runnable?>!|, @R|org/jetbrains/annotations/NotNull|() s: R|kotlin/String|): R|test/ConstructorWithAnnotations|
|
||||
public constructor(r: R|ft<java/lang/Runnable, java/lang/Runnable?>!|, @R|org/jetbrains/annotations/NotNull|() s: R|@EnhancedNullability kotlin/String|): R|test/ConstructorWithAnnotations|
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user