[FIR Test] Migrate AbstractFirLoadCompiledKotlin to new test infrastructure
Also introduce two different modes for those tests: - load metadata compiled with K1 - load metadata compiled with K2
This commit is contained in:
committed by
Space Team
parent
63829876b7
commit
6287968511
-1
@@ -19,4 +19,3 @@ public final class InheritMethodsDifferentReturnTypes : R|kotlin/Any| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.fir.k2.txt
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
public final class InheritMethodsDifferentReturnTypes : R|kotlin/Any| {
|
||||
public constructor(): R|test/InheritMethodsDifferentReturnTypes|
|
||||
|
||||
public abstract interface Super1 : R|kotlin/Any| {
|
||||
public abstract fun bar(): R|kotlin/String?|
|
||||
|
||||
public abstract fun foo(): R|kotlin/CharSequence?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Super2 : R|kotlin/Any| {
|
||||
public abstract fun bar(): R|kotlin/CharSequence?|
|
||||
|
||||
public abstract fun foo(): R|kotlin/String?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritMethodsDifferentReturnTypes.Super1|, R|test/InheritMethodsDifferentReturnTypes.Super2| {
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -19,4 +19,3 @@ public final class InheritMethodsDifferentReturnTypesGeneric : R|kotlin/Any| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
public final class InheritMethodsDifferentReturnTypesGeneric : R|kotlin/Any| {
|
||||
public constructor(): R|test/InheritMethodsDifferentReturnTypesGeneric|
|
||||
|
||||
public abstract interface Super1<F, B> : R|kotlin/Any| {
|
||||
public abstract fun bar(): R|B?|
|
||||
|
||||
public abstract fun foo(): R|F?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Super2<FF, BB> : R|kotlin/Any| {
|
||||
public abstract fun bar(): R|BB?|
|
||||
|
||||
public abstract fun foo(): R|FF?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritMethodsDifferentReturnTypesGeneric.Super1<kotlin/String, kotlin/CharSequence>|, R|test/InheritMethodsDifferentReturnTypesGeneric.Super2<kotlin/CharSequence, kotlin/String>| {
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
public abstract interface RemoveRedundantProjectionKind : R|kotlin/Any| {
|
||||
public abstract fun f(p0: R|kotlin/collections/Collection<kotlin/CharSequence?>?|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun f(p0: R|kotlin/Comparable<kotlin/CharSequence?>?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public final class Some : R|kotlin/Any| {
|
||||
public constructor(): R|test/Some|
|
||||
|
||||
public final companion object Companion : R|kotlin/Any| {
|
||||
private constructor(): R|test/Some.Companion|
|
||||
|
||||
public final annotation class TestAnnotation : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/Some.Companion.TestAnnotation|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
public final fun <T> foo(t: R|T|): R|T|
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
public abstract interface PropagateTypeArgumentNullable : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun invOutR(): R|kotlin/collections/MutableList<kotlin/collections/List<kotlin/String?>>|
|
||||
|
||||
public abstract fun invOutS(p: R|kotlin/collections/MutableList<kotlin/collections/List<kotlin/String?>>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun invR(): R|kotlin/collections/MutableList<kotlin/String?>|
|
||||
|
||||
public abstract fun outOutS(p: R|kotlin/collections/List<kotlin/collections/List<kotlin/String?>>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun outR(): R|kotlin/collections/List<kotlin/String?>|
|
||||
|
||||
public abstract fun outS(p: R|kotlin/collections/List<kotlin/String?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/PropagateTypeArgumentNullable.Super| {
|
||||
public abstract fun invOutR(): R|kotlin/collections/MutableList<kotlin/collections/List<kotlin/String?>>|
|
||||
|
||||
public abstract fun invOutS(p: R|kotlin/collections/MutableList<kotlin/collections/List<kotlin/String?>>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun invR(): R|kotlin/collections/MutableList<kotlin/String?>|
|
||||
|
||||
public abstract fun outOutS(p: R|kotlin/collections/List<kotlin/collections/List<kotlin/String?>>|): R|kotlin/Unit|
|
||||
|
||||
public abstract fun outR(): R|kotlin/collections/List<kotlin/String?>|
|
||||
|
||||
public abstract fun outS(p: R|kotlin/collections/List<kotlin/String?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface ChangeProjectionKind1 : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<in kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/ChangeProjectionKind1.Super| {
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<in kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface ChangeProjectionKind2 : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/ChangeProjectionKind2.Super| {
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
public abstract interface DeeplySubstitutedClassParameter : R|kotlin/Any| {
|
||||
public abstract interface Super<T> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(t: R|T|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Middle<E> : R|test/DeeplySubstitutedClassParameter.Super<E>| {
|
||||
public abstract fun foo(t: R|E|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/DeeplySubstitutedClassParameter.Middle<kotlin/String>| {
|
||||
public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
public abstract interface DeeplySubstitutedClassParameter2 : R|kotlin/Any| {
|
||||
public abstract interface Super<T> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(t: R|T|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Middle<E> : R|test/DeeplySubstitutedClassParameter2.Super<E>| {
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/DeeplySubstitutedClassParameter2.Middle<kotlin/String>| {
|
||||
public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritMutability : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritMutability.Super| {
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNotVararg : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p0: R|kotlin/Array<out kotlin/String>?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNotVararg.Super| {
|
||||
public abstract fun foo(p0: R|kotlin/Array<out kotlin/String>?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNotVarargInteger : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p0: R|kotlin/Array<out kotlin/Int>?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNotVarargInteger.Super| {
|
||||
public abstract fun foo(p0: R|kotlin/Array<out kotlin/Int>?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNotVarargNotNull : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/Array<out kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNotVarargNotNull.Super| {
|
||||
public abstract fun foo(p: R|kotlin/Array<out kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNotVarargPrimitive : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p0: R|kotlin/IntArray?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNotVarargPrimitive.Super| {
|
||||
public abstract fun foo(p0: R|kotlin/IntArray?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNullability : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNullability.Super| {
|
||||
public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritProjectionKind : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<in kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritProjectionKind.Super| {
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<in kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritReadOnliness : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/collections/List<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritReadOnliness.Super| {
|
||||
public abstract fun foo(p: R|kotlin/collections/List<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritVararg : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(vararg p0: R|kotlin/Array<out kotlin/String?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritVararg.Super| {
|
||||
public abstract fun foo(vararg p0: R|kotlin/Array<out kotlin/String?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritVarargInteger : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(vararg p0: R|kotlin/Array<out kotlin/Int?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritVarargInteger.Super| {
|
||||
public abstract fun foo(vararg p0: R|kotlin/Array<out kotlin/Int?>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritVarargNotNull : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(vararg p: R|kotlin/Array<out kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritVarargNotNull.Super| {
|
||||
public abstract fun foo(vararg p: R|kotlin/Array<out kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritVarargPrimitive : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(vararg p0: R|kotlin/IntArray|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritVarargPrimitive.Super| {
|
||||
public abstract fun foo(vararg p0: R|kotlin/IntArray|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
public abstract interface Kt3302 : R|kotlin/Any| {
|
||||
public abstract interface BSONObject : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun put(p0: R|kotlin/String|, p1: R|kotlin/Any|): R|kotlin/Any?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface LinkedHashMap<K, V> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun put(key: R|K|, value: R|V|): R|V?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface BasicBSONObject : R|test/Kt3302.LinkedHashMap<kotlin/String, kotlin/Any>|, R|test/Kt3302.BSONObject| {
|
||||
public abstract fun put(key: R|kotlin/String|, value: R|kotlin/Any|): R|kotlin/Any?|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface MutableToReadOnly : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/MutableToReadOnly.Super| {
|
||||
public abstract fun foo(p: R|kotlin/collections/MutableList<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface NotNullToNullable : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/NotNullToNullable.Super| {
|
||||
public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface NullableToNotNull : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p0: R|kotlin/String?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/NullableToNotNull.Super| {
|
||||
public abstract fun foo(p0: R|kotlin/String?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface NullableToNotNullKotlinSignature : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/String?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/NullableToNotNullKotlinSignature.Super| {
|
||||
public abstract fun foo(p: R|kotlin/String?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface OverrideWithErasedParameter : R|kotlin/Any| {
|
||||
public abstract interface Super<T> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p0: R|T?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub<T> : R|test/OverrideWithErasedParameter.Super<T>| {
|
||||
public abstract fun foo(p0: R|T?|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface ReadOnlyToMutable : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p: R|kotlin/collections/List<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/ReadOnlyToMutable.Super| {
|
||||
public abstract fun foo(p: R|kotlin/collections/List<kotlin/String>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
public abstract interface SubclassFromGenericAndNot : R|kotlin/Any| {
|
||||
public abstract interface NonGeneric : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Generic<T> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(key: R|T|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/SubclassFromGenericAndNot.NonGeneric|, R|test/SubclassFromGenericAndNot.Generic<kotlin/String>| {
|
||||
public abstract fun foo(key: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface SubstitutedClassParameter : R|kotlin/Any| {
|
||||
public abstract interface Super<T> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(t: R|T|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/SubstitutedClassParameter.Super<kotlin/String>| {
|
||||
public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
public abstract interface SubstitutedClassParameters : R|kotlin/Any| {
|
||||
public abstract interface Super1<T> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(t: R|T|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Super2<E> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(t: R|E|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/SubstitutedClassParameters.Super1<kotlin/String>|, R|test/SubstitutedClassParameters.Super2<kotlin/String>| {
|
||||
public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface AddNotNullJavaSubtype : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/CharSequence?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/AddNotNullJavaSubtype.Super| {
|
||||
public abstract fun foo(): R|kotlin/String|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface AddNotNullSameJavaType : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/CharSequence?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/AddNotNullSameJavaType.Super| {
|
||||
public abstract fun foo(): R|kotlin/CharSequence|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface AddNullabilityJavaSubtype : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/CharSequence|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/AddNullabilityJavaSubtype.Super| {
|
||||
public abstract fun foo(): R|kotlin/String|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface AddNullabilitySameGenericType1 : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/AddNullabilitySameGenericType1.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface AddNullabilitySameGenericType2 : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/AddNullabilitySameGenericType2.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface AddNullabilitySameJavaType : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/CharSequence|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/AddNullabilitySameJavaType.Super| {
|
||||
public abstract fun foo(): R|kotlin/CharSequence|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface CantMakeImmutableInSubclass : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/MutableCollection<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/CantMakeImmutableInSubclass.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
public abstract interface DeeplySubstitutedClassParameter : R|kotlin/Any| {
|
||||
public abstract interface Super<T> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|T|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Middle<E> : R|test/DeeplySubstitutedClassParameter.Super<E>| {
|
||||
public abstract fun foo(): R|E|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/DeeplySubstitutedClassParameter.Middle<kotlin/String>| {
|
||||
public abstract fun foo(): R|kotlin/String|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
public abstract interface DeeplySubstitutedClassParameter2 : R|kotlin/Any| {
|
||||
public abstract interface Super<T> : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|T|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Middle<E> : R|test/DeeplySubstitutedClassParameter2.Super<E>| {
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/DeeplySubstitutedClassParameter2.Middle<kotlin/String>| {
|
||||
public abstract fun foo(): R|kotlin/String|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
public abstract interface HalfSubstitutedTypeParameters : R|kotlin/Any| {
|
||||
public abstract interface TrickyList<X, E> : R|kotlin/collections/MutableList<E>| {
|
||||
}
|
||||
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String?>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/HalfSubstitutedTypeParameters.Super| {
|
||||
public abstract fun foo(): R|test/HalfSubstitutedTypeParameters.TrickyList<kotlin/Int, kotlin/String?>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNullabilityGenericSubclassSimple : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/MutableCollection<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNullabilityGenericSubclassSimple.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNullabilityJavaSubtype : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/CharSequence|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNullabilityJavaSubtype.Super| {
|
||||
public abstract fun foo(): R|kotlin/String|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNullabilitySameGenericType : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNullabilitySameGenericType.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritNullabilitySameJavaType : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/CharSequence|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritNullabilitySameJavaType.Super| {
|
||||
public abstract fun foo(): R|kotlin/CharSequence|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritProjectionKind : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/MutableCollection<out kotlin/Number>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritProjectionKind.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/MutableList<out kotlin/Number>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritReadOnlinessOfArgument : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/List<kotlin/collections/List<kotlin/String>>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritReadOnlinessOfArgument.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/List<kotlin/collections/List<kotlin/String>>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritReadOnlinessSameClass : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/List<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritReadOnlinessSameClass.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/List<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface InheritReadOnlinessSubclass : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/Collection<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/InheritReadOnlinessSubclass.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/List<kotlin/String>|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
public abstract interface SameProjectionKind : R|kotlin/Any| {
|
||||
public abstract interface Super : R|kotlin/Any| {
|
||||
public abstract fun dummy(): R|kotlin/Unit|
|
||||
|
||||
public abstract fun foo(): R|kotlin/collections/MutableCollection<out kotlin/Number?>?|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface Sub : R|test/SameProjectionKind.Super| {
|
||||
public abstract fun foo(): R|kotlin/collections/MutableCollection<out kotlin/Number?>?|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user