Update testData for nullability warnings
They become errors after type enhancement
This commit is contained in:
+8
-8
@@ -21,35 +21,35 @@ fun test() {
|
||||
var platformJ = J.staticJ
|
||||
|
||||
+platformNN
|
||||
+<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>
|
||||
<!UNSAFE_CALL!>+<!>platformN
|
||||
+platformJ
|
||||
|
||||
++platformNN
|
||||
++<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>
|
||||
<!UNSAFE_CALL!>++<!>platformN
|
||||
++platformJ
|
||||
|
||||
platformNN++
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>++
|
||||
platformN<!UNSAFE_CALL!>++<!>
|
||||
platformJ++
|
||||
|
||||
1 + platformNN
|
||||
1 + <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>
|
||||
1 <!NONE_APPLICABLE!>+<!> platformN
|
||||
1 + platformJ
|
||||
|
||||
platformNN + 1
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!> + 1
|
||||
platformN <!UNSAFE_INFIX_CALL!>+<!> 1
|
||||
platformJ + 1
|
||||
|
||||
1 plus platformNN
|
||||
1 plus <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>
|
||||
1 <!NONE_APPLICABLE!>plus<!> platformN
|
||||
1 plus platformJ
|
||||
|
||||
platformNN plus 1
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!> plus 1
|
||||
platformN <!UNSAFE_INFIX_CALL!>plus<!> 1
|
||||
platformJ plus 1
|
||||
|
||||
platformNN += 1
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!> += 1
|
||||
platformN <!UNSAFE_INFIX_CALL!>+=<!> 1
|
||||
platformJ += 1
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: kotlin.Int!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.Int!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.Int!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.Int?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.Int
|
||||
}
|
||||
|
||||
+2
-2
@@ -21,11 +21,11 @@ fun test() {
|
||||
val platformJ = J.staticJ
|
||||
|
||||
platformNN[0]
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>[0]
|
||||
<!UNSAFE_CALL!>platformN[0]<!>
|
||||
platformJ[0]
|
||||
|
||||
platformNN[0] = 1
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>[0] = 1
|
||||
<!UNSAFE_CALL!>platformN[0]<!> = 1
|
||||
platformJ[0] = 1
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: kotlin.Array<(out) kotlin.Int!>!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.Array<(out) kotlin.Int!>!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.Array<(out) kotlin.Int!>!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.Array<(out) kotlin.Int!>?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.Array<(out) kotlin.Int!>
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ var n: J? = J()
|
||||
|
||||
fun test() {
|
||||
v = J.staticNN
|
||||
v = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>
|
||||
v = <!TYPE_MISMATCH!>J.staticN<!>
|
||||
v = J.staticJ
|
||||
|
||||
n = J.staticNN
|
||||
|
||||
+2
-2
@@ -12,6 +12,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+6
-6
@@ -22,26 +22,26 @@ fun test() {
|
||||
val platformJ = J.staticJ
|
||||
|
||||
if (platformNN) {}
|
||||
if (<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>) {}
|
||||
if (<!TYPE_MISMATCH, TYPE_MISMATCH_IN_CONDITION!>platformN<!>) {}
|
||||
if (platformJ) {}
|
||||
|
||||
while (platformNN) {}
|
||||
while (<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>) {}
|
||||
while (<!TYPE_MISMATCH, TYPE_MISMATCH_IN_CONDITION!>platformN<!>) {}
|
||||
while (platformJ) {}
|
||||
|
||||
do {} while (platformNN)
|
||||
do {} while (<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>)
|
||||
do {} while (<!TYPE_MISMATCH, TYPE_MISMATCH_IN_CONDITION!>platformN<!>)
|
||||
do {} while (platformJ)
|
||||
|
||||
platformNN && false
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!> && false
|
||||
<!TYPE_MISMATCH!>platformN<!> && false
|
||||
platformJ && false
|
||||
|
||||
platformNN || false
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!> || false
|
||||
<!TYPE_MISMATCH!>platformN<!> || false
|
||||
platformJ || false
|
||||
|
||||
!platformNN
|
||||
!<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>
|
||||
<!UNSAFE_CALL!>!<!>platformN
|
||||
!platformJ
|
||||
}
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: kotlin.Boolean!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.Boolean!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.Boolean!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.Boolean?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.Boolean
|
||||
}
|
||||
|
||||
+6
-6
@@ -14,17 +14,17 @@ public class J {
|
||||
|
||||
fun test() {
|
||||
val n = J.staticN
|
||||
foo(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>)
|
||||
J.staticNN = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>
|
||||
foo(<!TYPE_MISMATCH!>n<!>)
|
||||
J.staticNN = <!TYPE_MISMATCH!>n<!>
|
||||
if (n != null) {
|
||||
foo(n)
|
||||
J.staticNN = n
|
||||
foo(<!DEBUG_INFO_SMARTCAST!>n<!>)
|
||||
J.staticNN = <!DEBUG_INFO_SMARTCAST!>n<!>
|
||||
}
|
||||
|
||||
val x: J? = null
|
||||
J.staticNN = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>x<!>
|
||||
J.staticNN = <!TYPE_MISMATCH!>x<!>
|
||||
if (x != null) {
|
||||
J.staticNN = x
|
||||
J.staticNN = <!DEBUG_INFO_SMARTCAST!>x<!>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ fun test() {
|
||||
// platform type with no annotation
|
||||
val platformJ = J.staticJ
|
||||
|
||||
fun foo(p: J = platformNN, p1: J = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>, p2: J = platformJ) {}
|
||||
fun foo(p: J = platformNN, p1: J = <!TYPE_MISMATCH!>platformN<!>, p2: J = platformJ) {}
|
||||
|
||||
fun foo1(p: J? = platformNN, p1: J? = platformN, p2: J? = platformJ) {}
|
||||
}
|
||||
Vendored
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -19,5 +19,5 @@ public class J {
|
||||
// FILE: k.kt
|
||||
|
||||
var A by J.staticNN
|
||||
var B by <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS, NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>
|
||||
var B by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE, DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>J.staticN<!>
|
||||
var C by J.staticJ
|
||||
Vendored
+3
-3
@@ -1,7 +1,7 @@
|
||||
package
|
||||
|
||||
internal var A: kotlin.String!
|
||||
internal var B: kotlin.String!
|
||||
internal var B: [ERROR : Type from delegate]
|
||||
internal var C: kotlin.String!
|
||||
|
||||
public open class J {
|
||||
@@ -20,6 +20,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J.DP!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J.DP!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J.DP!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J.DP?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J.DP
|
||||
}
|
||||
|
||||
+1
-1
@@ -14,5 +14,5 @@ public class J {
|
||||
// FILE: k.kt
|
||||
|
||||
class A : List<String> by J.staticNN
|
||||
class B : List<String> by <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>
|
||||
class B : List<String> by <!TYPE_MISMATCH!>J.staticN<!>
|
||||
class C : List<String> by J.staticJ
|
||||
+2
-2
@@ -62,6 +62,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: kotlin.(Mutable)List<kotlin.String!>!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.(Mutable)List<kotlin.String!>!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.(Mutable)List<kotlin.String!>!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.(Mutable)List<kotlin.String!>?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.(Mutable)List<kotlin.String!>
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -23,14 +23,14 @@ fun test() {
|
||||
val platformJ = J.staticJ
|
||||
|
||||
platformNN.foo()
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>.foo()
|
||||
platformN<!UNSAFE_CALL!>.<!>foo()
|
||||
platformJ.foo()
|
||||
|
||||
with(platformNN) {
|
||||
foo()
|
||||
}
|
||||
with(platformN) {
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>foo<!>()
|
||||
<!UNSAFE_CALL!>foo<!>()
|
||||
}
|
||||
with(platformJ) {
|
||||
foo()
|
||||
|
||||
Vendored
+2
-2
@@ -13,6 +13,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+2
-2
@@ -25,14 +25,14 @@ fun test() {
|
||||
val platformJ = J.staticJ
|
||||
|
||||
platformNN.foo()
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>.foo()
|
||||
platformN<!UNSAFE_CALL!>.<!>foo()
|
||||
platformJ.foo()
|
||||
|
||||
with(platformNN) {
|
||||
foo()
|
||||
}
|
||||
with(platformN) {
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>foo<!>()
|
||||
<!UNSAFE_CALL!>foo<!>()
|
||||
}
|
||||
with(platformJ) {
|
||||
foo()
|
||||
|
||||
+2
-2
@@ -12,6 +12,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ fun test() {
|
||||
val platformJ = J.staticJ
|
||||
|
||||
checkSubtype<J>(platformNN)
|
||||
checkSubtype<J>(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>)
|
||||
checkSubtype<J>(<!TYPE_MISMATCH!>platformN<!>)
|
||||
checkSubtype<J>(platformJ)
|
||||
|
||||
checkSubtype<J?>(platformNN)
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ fun test() {
|
||||
val platformJ = J.staticJ
|
||||
|
||||
for (x in platformNN) {}
|
||||
for (x in <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>) {}
|
||||
for (x in <!ITERATOR_MISSING!>platformN<!>) {}
|
||||
for (x in platformJ) {}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: kotlin.(Mutable)List<kotlin.String!>!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.(Mutable)List<kotlin.String!>!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.(Mutable)List<kotlin.String!>!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.(Mutable)List<kotlin.String!>?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.(Mutable)List<kotlin.String!>
|
||||
}
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ public class J {
|
||||
|
||||
fun test() {
|
||||
foo(J.staticNN)
|
||||
foo(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>)
|
||||
foo(<!TYPE_MISMATCH!>J.staticN<!>)
|
||||
foo(J.staticJ)
|
||||
|
||||
bar(J.staticNN)
|
||||
|
||||
Vendored
+2
-2
@@ -12,6 +12,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -8,7 +8,7 @@ public open class J {
|
||||
public constructor J()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
org.jetbrains.annotations.Nullable() public open fun n(): kotlin.(Mutable)List<kotlin.String!>!
|
||||
org.jetbrains.annotations.NotNull() public open fun nn(): kotlin.String!
|
||||
org.jetbrains.annotations.Nullable() public open fun n(): kotlin.(Mutable)List<kotlin.String!>?
|
||||
org.jetbrains.annotations.NotNull() public open fun nn(): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ public class J {
|
||||
|
||||
fun test() {
|
||||
J.staticNN()
|
||||
J.<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>staticN<!>()
|
||||
J.<!UNSAFE_CALL!>staticN<!>()
|
||||
J.staticJ()
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J.Invoke!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J.Invoke!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J.Invoke!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J.Invoke?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J.Invoke
|
||||
public final /*synthesized*/ fun Invoke(/*0*/ function: () -> kotlin.Unit): J.Invoke
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,6 +7,6 @@ public open class J {
|
||||
public constructor J()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
org.jetbrains.annotations.Nullable() public open fun method(): kotlin.String!
|
||||
org.jetbrains.annotations.Nullable() public open fun method(): kotlin.String?
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ fun test() {
|
||||
val platformJ = J.staticJ
|
||||
|
||||
val (a1, b1) = platformNN
|
||||
val (a2, b2) = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS, NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>
|
||||
val (a2, b2) = <!COMPONENT_FUNCTION_MISSING, COMPONENT_FUNCTION_MISSING!>platformN<!>
|
||||
val (a3, b3) = platformJ
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -18,6 +18,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J.Multi!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J.Multi!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J.Multi!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J.Multi?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J.Multi
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -6,6 +6,6 @@ public open class J {
|
||||
public constructor J()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
org.jetbrains.annotations.NotNull() public open fun nn(): kotlin.String!
|
||||
org.jetbrains.annotations.NotNull() public open fun nn(): kotlin.String
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -18,5 +18,5 @@ public open class J {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ public open class J {
|
||||
public constructor J()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
org.jetbrains.annotations.Nullable() public open fun n(): kotlin.(Mutable)List<kotlin.String!>!
|
||||
org.jetbrains.annotations.Nullable() public open fun n(): kotlin.(Mutable)List<kotlin.String!>?
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
+10
-10
@@ -33,8 +33,8 @@ fun test(n: J?, nn: J) {
|
||||
// platform type with no annotation
|
||||
val platformJ = J.staticJ
|
||||
|
||||
J.staticNN = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>
|
||||
J.staticNN = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>
|
||||
J.staticNN = <!TYPE_MISMATCH!>n<!>
|
||||
J.staticNN = <!TYPE_MISMATCH!>platformN<!>
|
||||
J.staticNN = nn
|
||||
J.staticNN = platformNN
|
||||
J.staticNN = platformJ
|
||||
@@ -53,12 +53,12 @@ fun test(n: J?, nn: J) {
|
||||
|
||||
J.staticSet(nn, nn, nn)
|
||||
J.staticSet(platformNN, platformNN, platformNN)
|
||||
J.staticSet(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>, n, n)
|
||||
J.staticSet(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>, platformN, platformN)
|
||||
J.staticSet(<!TYPE_MISMATCH!>n<!>, n, n)
|
||||
J.staticSet(<!TYPE_MISMATCH!>platformN<!>, platformN, platformN)
|
||||
J.staticSet(platformJ, platformJ, platformJ)
|
||||
|
||||
J().nn = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>
|
||||
J().nn = <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>
|
||||
J().nn = <!TYPE_MISMATCH!>n<!>
|
||||
J().nn = <!TYPE_MISMATCH!>platformN<!>
|
||||
J().nn = nn
|
||||
J().nn = platformNN
|
||||
J().nn = platformJ
|
||||
@@ -77,13 +77,13 @@ fun test(n: J?, nn: J) {
|
||||
|
||||
J().set(nn, nn, nn)
|
||||
J().set(platformNN, platformNN, platformNN)
|
||||
J().set(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>, n, n)
|
||||
J().set(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>, platformN, platformN)
|
||||
J().set(<!TYPE_MISMATCH!>n<!>, n, n)
|
||||
J().set(<!TYPE_MISMATCH!>platformN<!>, platformN, platformN)
|
||||
J().set(platformJ, platformJ, platformJ)
|
||||
|
||||
J(nn, nn, nn)
|
||||
J(platformNN, platformNN, platformNN)
|
||||
J(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>, n, n)
|
||||
J(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>, platformN, platformN)
|
||||
<!NONE_APPLICABLE!>J<!>(n, n, n)
|
||||
<!NONE_APPLICABLE!>J<!>(platformN, platformN, platformN)
|
||||
J(platformJ, platformJ, platformJ)
|
||||
}
|
||||
+7
-7
@@ -4,18 +4,18 @@ internal fun test(/*0*/ n: J?, /*1*/ nn: J): kotlin.Unit
|
||||
|
||||
public open class J {
|
||||
public constructor J()
|
||||
public constructor J(/*0*/ org.jetbrains.annotations.NotNull() nn: J!, /*1*/ org.jetbrains.annotations.Nullable() n: J!, /*2*/ j: J!)
|
||||
public constructor J(/*0*/ org.jetbrains.annotations.NotNull() nn: J, /*1*/ org.jetbrains.annotations.Nullable() n: J?, /*2*/ j: J!)
|
||||
public final var j: J!
|
||||
org.jetbrains.annotations.Nullable() public final var n: J!
|
||||
org.jetbrains.annotations.NotNull() public final var nn: J!
|
||||
org.jetbrains.annotations.Nullable() public final var n: J?
|
||||
org.jetbrains.annotations.NotNull() public final var nn: J
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open fun set(/*0*/ org.jetbrains.annotations.NotNull() nn: J!, /*1*/ org.jetbrains.annotations.Nullable() n: J!, /*2*/ j: J!): kotlin.Unit
|
||||
public open fun set(/*0*/ org.jetbrains.annotations.NotNull() nn: J, /*1*/ org.jetbrains.annotations.Nullable() n: J?, /*2*/ j: J!): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
public open fun staticSet(/*0*/ org.jetbrains.annotations.NotNull() nn: J!, /*1*/ org.jetbrains.annotations.Nullable() n: J!, /*2*/ j: J!): kotlin.Unit
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
public open fun staticSet(/*0*/ org.jetbrains.annotations.NotNull() nn: J, /*1*/ org.jetbrains.annotations.Nullable() n: J?, /*2*/ j: J!): kotlin.Unit
|
||||
}
|
||||
|
||||
+2
-2
@@ -21,11 +21,11 @@ fun test() {
|
||||
val platformJ = J.staticJ
|
||||
|
||||
platformNN[0]
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>[0]
|
||||
<!UNSAFE_CALL!>platformN[0]<!>
|
||||
platformJ[0]
|
||||
|
||||
platformNN[0] = 1
|
||||
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>platformN<!>[0] = 1
|
||||
<!UNSAFE_CALL!>platformN[0]<!> = 1
|
||||
platformJ[0] = 1
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: kotlin.IntArray!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.IntArray!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.IntArray!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: kotlin.IntArray?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: kotlin.IntArray
|
||||
}
|
||||
|
||||
+2
-2
@@ -11,6 +11,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+2
-2
@@ -10,6 +10,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: J?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ fun test() {
|
||||
}
|
||||
|
||||
fun test1() {
|
||||
throw <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>
|
||||
throw <!TYPE_MISMATCH!>J.staticN<!>
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
|
||||
+2
-2
@@ -12,6 +12,6 @@ public open class J {
|
||||
|
||||
// Static members
|
||||
public final var staticJ: java.lang.Exception!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: java.lang.Exception!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: java.lang.Exception!
|
||||
org.jetbrains.annotations.Nullable() public final var staticN: java.lang.Exception?
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: java.lang.Exception
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -18,5 +18,5 @@ public open class J {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J!
|
||||
org.jetbrains.annotations.NotNull() public final var staticNN: J
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user