提交 4d6ab824 编写于 作者: A Andrey Breslav 提交者: Denis Zharkov

Adding Java descriptors to the test data for nullability warnings

上级 7386ea0d
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -13,8 +12,6 @@ public class J { ...@@ -13,8 +12,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
var platformNN = J.staticNN var platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// 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!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -13,8 +12,6 @@ public class J { ...@@ -13,8 +12,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// 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!>!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -13,8 +12,6 @@ public class J { ...@@ -13,8 +12,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
var v: J = J() var v: J = J()
var n: J? = J() var n: J? = J()
......
package package
internal var n: p.J? internal var n: J?
internal var v: p.J internal var v: J
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// !DIAGNOSTICS: -UNUSED_EXPRESSION // !DIAGNOSTICS: -UNUSED_EXPRESSION
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -14,8 +13,6 @@ public class J { ...@@ -14,8 +13,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// 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!
}
// !DIAGNOSTICS: -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -13,8 +12,6 @@ public class J { ...@@ -13,8 +12,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
val n = J.staticN val n = J.staticN
foo(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>) foo(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>n<!>)
......
package package
internal fun foo(/*0*/ j: p.J): kotlin.Unit internal fun foo(/*0*/ j: J): kotlin.Unit
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// !DIAGNOSTICS: -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -14,8 +13,6 @@ public class J { ...@@ -14,8 +13,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -19,8 +18,6 @@ public class J { ...@@ -19,8 +18,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
var A by J.staticNN 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 <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS, NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>
var C by J.staticJ var C by J.staticJ
\ No newline at end of file
...@@ -3,3 +3,23 @@ package ...@@ -3,3 +3,23 @@ package
internal var A: kotlin.String! internal var A: kotlin.String!
internal var B: kotlin.String! internal var B: kotlin.String!
internal var C: kotlin.String! internal var C: kotlin.String!
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public trait DP {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public abstract fun get(/*0*/ a: kotlin.Any!, /*1*/ b: kotlin.Any!): kotlin.String!
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public abstract fun set(/*0*/ a: kotlin.Any!, /*1*/ b: kotlin.Any!, /*2*/ c: kotlin.Any!): kotlin.String!
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
// 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!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
import java.util.*; import java.util.*;
...@@ -14,8 +13,6 @@ public class J { ...@@ -14,8 +13,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
class A : List<String> by J.staticNN 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 <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>
class C : List<String> by J.staticJ class C : List<String> by J.staticJ
\ No newline at end of file
...@@ -53,3 +53,15 @@ internal final class C : kotlin.List<kotlin.String> { ...@@ -53,3 +53,15 @@ internal final class C : kotlin.List<kotlin.String> {
public open override /*1*/ /*delegation*/ fun subList(/*0*/ fromIndex: kotlin.Int, /*1*/ toIndex: kotlin.Int): kotlin.List<kotlin.String> public open override /*1*/ /*delegation*/ fun subList(/*0*/ fromIndex: kotlin.Int, /*1*/ toIndex: kotlin.Int): kotlin.List<kotlin.String>
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
} }
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// 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!>!
}
// !DIAGNOSTICS: -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -15,8 +14,6 @@ public class J { ...@@ -15,8 +14,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
...@@ -2,5 +2,17 @@ package ...@@ -2,5 +2,17 @@ package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
internal fun </*0*/ T> with(/*0*/ t: T, /*1*/ f: T.() -> kotlin.Unit): kotlin.Unit internal fun </*0*/ T> with(/*0*/ t: T, /*1*/ f: T.() -> kotlin.Unit): kotlin.Unit
internal fun p.J?.bar(): kotlin.Unit internal fun J?.bar(): kotlin.Unit
internal fun p.J.foo(): kotlin.Unit internal fun J.foo(): kotlin.Unit
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
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!
}
// !DIAGNOSTICS: -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -17,8 +16,6 @@ public class J { ...@@ -17,8 +16,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
...@@ -2,3 +2,16 @@ package ...@@ -2,3 +2,16 @@ package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
internal fun </*0*/ T> with(/*0*/ t: T, /*1*/ f: T.() -> kotlin.Unit): kotlin.Unit internal fun </*0*/ T> with(/*0*/ t: T, /*1*/ f: T.() -> kotlin.Unit): kotlin.Unit
public open class J {
public constructor J()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open fun foo(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
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!
}
// !DIAGNOSTICS: -UNUSED_VARIABLE -SENSELESS_COMPARISON // !DIAGNOSTICS: -UNUSED_VARIABLE -SENSELESS_COMPARISON
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -15,8 +14,6 @@ public class J { ...@@ -15,8 +14,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// !CHECK_TYPE // !CHECK_TYPE
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -15,8 +14,6 @@ public class J { ...@@ -15,8 +14,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
import java.util.*; import java.util.*;
...@@ -14,8 +13,6 @@ public class J { ...@@ -14,8 +13,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// 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!>!
}
// !DIAGNOSTICS: -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -14,8 +13,6 @@ public class J { ...@@ -14,8 +13,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
foo(J.staticNN) foo(J.staticNN)
foo(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>) foo(<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>J.staticN<!>)
......
package package
internal fun bar(/*0*/ j: p.J?): kotlin.Unit internal fun bar(/*0*/ j: J?): kotlin.Unit
internal fun foo(/*0*/ j: p.J): kotlin.Unit internal fun foo(/*0*/ j: J): kotlin.Unit
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
import java.util.*; import java.util.*;
...@@ -15,8 +13,6 @@ public class J { ...@@ -15,8 +13,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun safeCall(c: J?) { fun safeCall(c: J?) {
c?.nn()?.length() c?.nn()?.length()
} }
......
package package
internal fun elvis(/*0*/ c: p.J): kotlin.Any? internal fun elvis(/*0*/ c: J): kotlin.Any?
internal fun ifelse(/*0*/ c: p.J): kotlin.Any? internal fun ifelse(/*0*/ c: J): kotlin.Any?
internal fun safeCall(/*0*/ c: p.J?): kotlin.Unit internal fun safeCall(/*0*/ c: J?): kotlin.Unit
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!
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -17,8 +16,6 @@ public class J { ...@@ -17,8 +16,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
J.staticNN() J.staticNN()
J.<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>staticN<!>() J.<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>staticN<!>()
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public trait Invoke {
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 abstract fun invoke(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
// 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!
public final /*synthesized*/ fun Invoke(/*0*/ function: () -> kotlin.Unit): J.Invoke
}
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
// KT-6829 False warning on map to @Nullable // KT-6829 False warning on map to @Nullable
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -15,8 +14,6 @@ public class J { ...@@ -15,8 +14,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun foo(collection: Collection<J>) { fun foo(collection: Collection<J>) {
val mapped = collection.map { it.method() } val mapped = collection.map { it.method() }
<!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>mapped[0]<!>.length() <!NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS!>mapped[0]<!>.length()
......
package package
internal fun foo(/*0*/ collection: kotlin.Collection<p.J>): kotlin.Unit internal fun foo(/*0*/ collection: kotlin.Collection<J>): kotlin.Unit
public fun </*0*/ T, /*1*/ R> kotlin.Iterable<T>.map(/*0*/ transform: (T) -> R): kotlin.List<R> public fun </*0*/ T, /*1*/ R> kotlin.Iterable<T>.map(/*0*/ transform: (T) -> R): kotlin.List<R>
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!
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
// !DIAGNOSTICS: -UNUSED_VARIABLE // !DIAGNOSTICS: -UNUSED_VARIABLE
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -19,8 +18,6 @@ public class J { ...@@ -19,8 +18,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public trait Multi {
public abstract fun component1(): kotlin.String!
public abstract fun component2(): kotlin.String!
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 override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
// 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!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -10,8 +8,6 @@ public class J { ...@@ -10,8 +8,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.J
fun test(j: J?) { fun test(j: J?) {
val s = j?.nn() val s = j?.nn()
if (s != null) { if (s != null) {
......
package package
internal fun test(/*0*/ j: p.J?): kotlin.Unit internal fun test(/*0*/ j: J?): kotlin.Unit
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!
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
// !DIAGNOSTICS: -UNUSED_EXPRESSION -SENSELESS_COMPARISON -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_EXPRESSION -SENSELESS_COMPARISON -UNUSED_PARAMETER
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -15,8 +14,6 @@ public class J { ...@@ -15,8 +14,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// !DIAGNOSTICS: -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -12,8 +11,6 @@ public class J { ...@@ -12,8 +11,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
...@@ -10,3 +10,13 @@ internal final class Bar { ...@@ -10,3 +10,13 @@ internal final class Bar {
internal final fun invoke(/*0*/ a: kotlin.Any): kotlin.Unit internal final fun invoke(/*0*/ a: kotlin.Any): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
} }
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
org.jetbrains.annotations.NotNull() public final var staticNN: J!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
import java.util.*; import java.util.*;
...@@ -12,8 +10,6 @@ public class J { ...@@ -12,8 +10,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun list(j: J): Any { fun list(j: J): Any {
val a = j.n()!! val a = j.n()!!
......
package package
internal fun list(/*0*/ j: p.J): kotlin.Any internal fun list(/*0*/ j: J): kotlin.Any
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!>!
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -26,8 +25,6 @@ public class J { ...@@ -26,8 +25,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test(n: J?, nn: J) { fun test(n: J?, nn: J) {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(/*0*/ n: p.J?, /*1*/ nn: p.J): kotlin.Unit 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 final var j: 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 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
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -13,8 +12,6 @@ public class J { ...@@ -13,8 +12,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// 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!
}
// !DIAGNOSTICS: -SENSELESS_COMPARISON // !DIAGNOSTICS: -SENSELESS_COMPARISON
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -17,8 +16,6 @@ public class J { ...@@ -17,8 +16,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
public open class J {
public constructor J()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open fun foo(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
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!
}
// !DIAGNOSTICS: -UNUSED_EXPRESSION // !DIAGNOSTICS: -UNUSED_EXPRESSION
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -15,8 +14,6 @@ public class J { ...@@ -15,8 +14,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// !DIAGNOSTICS: -UNUSED_EXPRESSION // !DIAGNOSTICS: -UNUSED_EXPRESSION
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -15,8 +14,6 @@ public class J { ...@@ -15,8 +14,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
package package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
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
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!
}
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -13,8 +12,6 @@ public class J { ...@@ -13,8 +12,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
throw J.staticNN throw J.staticNN
} }
......
...@@ -3,3 +3,15 @@ package ...@@ -3,3 +3,15 @@ package
internal fun test(): kotlin.Unit internal fun test(): kotlin.Unit
internal fun test1(): kotlin.Unit internal fun test1(): kotlin.Unit
internal fun test2(): kotlin.Unit internal fun test2(): kotlin.Unit
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// 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!
}
// !DIAGNOSTICS: -UNUSED_PARAMETER // !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: p/J.java // FILE: J.java
package p;
import org.jetbrains.annotations.*; import org.jetbrains.annotations.*;
...@@ -12,8 +11,6 @@ public class J { ...@@ -12,8 +11,6 @@ public class J {
// FILE: k.kt // FILE: k.kt
import p.*
fun test() { fun test() {
// @NotNull platform type // @NotNull platform type
val platformNN = J.staticNN val platformNN = J.staticNN
......
...@@ -10,3 +10,13 @@ internal final class Bar { ...@@ -10,3 +10,13 @@ internal final class Bar {
internal final fun invoke(/*0*/ a: kotlin.Any): kotlin.Unit internal final fun invoke(/*0*/ a: kotlin.Any): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
} }
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
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
org.jetbrains.annotations.NotNull() public final var staticNN: J!
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册