mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
Properly handle @NotNull for arrays
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class NotNullIntArray {
|
||||
@NotNull
|
||||
public int[] hi() { return null; }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
public open class NotNullIntArray() : java.lang.Object() {
|
||||
public open fun hi(): IntArray = throw Exception()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class NotNullIntArray : java.lang.Object {
|
||||
public constructor NotNullIntArray()
|
||||
public open fun hi(): jet.IntArray
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class NotNullObjectArray {
|
||||
@NotNull
|
||||
public Object[] hi() { return null; }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
public open class NotNullObjectArray() : java.lang.Object() {
|
||||
public open fun hi(): Array<Any> = throw Exception()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
public open class NotNullObjectArray : java.lang.Object {
|
||||
public constructor NotNullObjectArray()
|
||||
public open fun hi(): jet.Array<jet.Any>
|
||||
}
|
||||
Reference in New Issue
Block a user