[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
+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|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user