[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
@@ -41,4 +41,3 @@ public final class Test : R|kotlin/Any| {
|
||||
public constructor(x: R|kotlin/Int|): R|test/Z|
|
||||
|
||||
}
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
public final annotation class Ann : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/Ann|
|
||||
|
||||
}
|
||||
|
||||
public sealed class Sealed : R|kotlin/Any| {
|
||||
public final val z: R|test/Z|
|
||||
public get(): R|test/Z|
|
||||
|
||||
@R|test/Ann|() protected constructor(@R|test/Ann|() z: R|test/Z|): R|test/Sealed|
|
||||
|
||||
public final class Derived : R|test/Sealed| {
|
||||
@R|test/Ann|() public constructor(z: R|test/Z|): R|test/Sealed.Derived|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final class Test : R|kotlin/Any| {
|
||||
public final val z: R|test/Z|
|
||||
public get(): R|test/Z|
|
||||
|
||||
@R|test/Ann|() public constructor(@R|test/Ann|() z: R|test/Z|): R|test/Test|
|
||||
|
||||
@R|test/Ann|() public constructor(z: R|test/Z|, @R|test/Ann|() a: R|kotlin/Int|): R|test/Test|
|
||||
|
||||
@R|test/Ann|() private constructor(z: R|test/Z|, @R|test/Ann|() s: R|kotlin/String|): R|test/Test|
|
||||
|
||||
}
|
||||
|
||||
@R|kotlin/jvm/JvmInline|() public final inline class Z : R|kotlin/Any| {
|
||||
public open operator fun equals(other: R|kotlin/Any?|): R|kotlin/Boolean|
|
||||
|
||||
public open fun hashCode(): R|kotlin/Int|
|
||||
|
||||
public open fun toString(): R|kotlin/String|
|
||||
|
||||
public final val x: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
public constructor(x: R|kotlin/Int|): R|test/Z|
|
||||
|
||||
}
|
||||
-1
@@ -17,4 +17,3 @@
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
@R|kotlin/Deprecated|(message = String(Class)) public final class Class : R|kotlin/Any| {
|
||||
public constructor(): R|test/Class|
|
||||
|
||||
@R|kotlin/Deprecated|(message = String(Nested)) public final class Nested : R|kotlin/Any| {
|
||||
public constructor(): R|test/Class.Nested|
|
||||
|
||||
}
|
||||
|
||||
@R|kotlin/Deprecated|(message = String(Inner)) public final inner class Inner : R|kotlin/Any| {
|
||||
public test/Class.constructor(): R|test/Class.Inner|
|
||||
|
||||
}
|
||||
|
||||
@R|kotlin/Deprecated|(message = String(companion object)) public final companion object Companion : R|kotlin/Any| {
|
||||
private constructor(): R|test/Class.Companion|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
public final annotation class Anno : R|kotlin/Annotation| {
|
||||
public final val t: R|java/lang/annotation/ElementType|
|
||||
public get(): R|java/lang/annotation/ElementType|
|
||||
|
||||
public constructor(t: R|java/lang/annotation/ElementType|): R|test/Anno|
|
||||
|
||||
}
|
||||
|
||||
@R|test/Anno|(t = R|java/lang/annotation/ElementType.METHOD|) public final class Class : R|kotlin/Any| {
|
||||
public constructor(): R|test/Class|
|
||||
|
||||
@R|test/Anno|(t = R|java/lang/annotation/ElementType.PARAMETER|) public final inner class Inner : R|kotlin/Any| {
|
||||
public test/Class.constructor(): R|test/Class.Inner|
|
||||
|
||||
}
|
||||
|
||||
@R|test/Anno|(t = R|java/lang/annotation/ElementType.TYPE|) public final class Nested : R|kotlin/Any| {
|
||||
public constructor(): R|test/Class.Nested|
|
||||
|
||||
}
|
||||
|
||||
@R|test/Anno|(t = R|java/lang/annotation/ElementType.ANNOTATION_TYPE|) public final companion object Companion : R|kotlin/Any| {
|
||||
private constructor(): R|test/Class.Companion|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -17,4 +17,3 @@ public final class Class : R|kotlin/Any| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
public final annotation class Anno : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/Anno|
|
||||
|
||||
}
|
||||
|
||||
public final class Class : R|kotlin/Any| {
|
||||
public constructor(): R|test/Class|
|
||||
|
||||
@R|test/Anno|() public final class Nested : R|kotlin/Any| {
|
||||
public constructor(): R|test/Class.Nested|
|
||||
|
||||
}
|
||||
|
||||
@R|test/Anno|() public final inner class Inner : R|kotlin/Any| {
|
||||
public test/Class.constructor(): R|test/Class.Inner|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -26,4 +26,3 @@ public final class Outer : R|kotlin/Any| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
public final annotation class A : R|kotlin/Annotation| {
|
||||
public final val s: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public constructor(s: R|kotlin/String|): R|test/A|
|
||||
|
||||
}
|
||||
|
||||
public final class Outer : R|kotlin/Any| {
|
||||
public constructor(): R|test/Outer|
|
||||
|
||||
public final class Nested : R|kotlin/Any| {
|
||||
public final val x: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public constructor(@R|test/A|(s = String(nested)) x: R|kotlin/String|): R|test/Outer.Nested|
|
||||
|
||||
}
|
||||
|
||||
public final inner class Inner : R|kotlin/Any| {
|
||||
public final val y: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public test/Outer.constructor(@R|test/A|(s = String(inner)) y: R|kotlin/String|): R|test/Outer.Inner|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
public final class Class : R|kotlin/Any| {
|
||||
@PROPERTY:R|test/IntAnno|() public final val R|kotlin/Int|.extension: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
@PROPERTY:R|test/DoubleAnno|() public final val R|kotlin/Double|.extension: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
@PROPERTY:R|test/StringAnno|() public final val R|kotlin/String|.extension: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public constructor(): R|test/Class|
|
||||
|
||||
}
|
||||
|
||||
public final annotation class DoubleAnno : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/DoubleAnno|
|
||||
|
||||
}
|
||||
|
||||
public final annotation class IntAnno : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/IntAnno|
|
||||
|
||||
}
|
||||
|
||||
public final annotation class StringAnno : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/StringAnno|
|
||||
|
||||
}
|
||||
-1
@@ -21,4 +21,3 @@ public final annotation class StringAnno : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/StringAnno|
|
||||
|
||||
}
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
@PROPERTY:R|test/IntAnno|() public final val R|kotlin/Int|.extension: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
@PROPERTY:R|test/StringAnno|() public final val R|kotlin/String|.extension: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
@PROPERTY:R|test/DoubleAnno|() public final val R|kotlin/Double|.extension: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
public final annotation class DoubleAnno : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/DoubleAnno|
|
||||
|
||||
}
|
||||
|
||||
public final annotation class IntAnno : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/IntAnno|
|
||||
|
||||
}
|
||||
|
||||
public final annotation class StringAnno : R|kotlin/Annotation| {
|
||||
public constructor(): R|test/StringAnno|
|
||||
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
public final annotation class A : R|kotlin/Annotation| {
|
||||
public final val value: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public constructor(value: R|kotlin/String|): R|test/A|
|
||||
|
||||
}
|
||||
|
||||
public final annotation class B : R|kotlin/Annotation| {
|
||||
public final val value: R|kotlin/Array<kotlin/String>|
|
||||
public get(): R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public constructor(value: R|kotlin/Array<kotlin/String>|): R|test/B|
|
||||
|
||||
}
|
||||
|
||||
public abstract interface I : R|kotlin/Any| {
|
||||
public abstract var getterAndSetter: R|kotlin/Int|
|
||||
@R|test/A|(value = String(getter)) public get(): R|kotlin/Int|
|
||||
@R|test/B|(value = <implicitArrayOf>(String(setter))) public set(value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
@PROPERTY:R|test/A|(value = String(property)) public abstract var propertyAndGetter: R|kotlin/Int|
|
||||
@R|test/B|(value = <implicitArrayOf>(String(getter))) public get(): R|kotlin/Int|
|
||||
public set(value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
@PROPERTY:R|test/A|(value = String(property)) public abstract var propertyAndSetter: R|kotlin/Int|
|
||||
public get(): R|kotlin/Int|
|
||||
@R|test/B|(value = <implicitArrayOf>(String(setter))) public set(value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user