[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
+6
-7
@@ -1,21 +1,21 @@
|
||||
@R|test/OptionGroups|(o1 = @R|test/StringOptions|(option = <implicitArrayOf>(String(abc), String(d), String(ef))) , o2 = @R|test/EnumOption|(option = R|test/E.ENTRY|()) ) public final class AnnotationInAnnotationArguments : R|kotlin/Any| {
|
||||
@R|test/OptionGroups|(o1 = @R|test/StringOptions|(option = <implicitArrayOf>(String(abc), String(d), String(ef))) , o2 = @R|test/EnumOption|(option = R|test/E.ENTRY|) ) public final class AnnotationInAnnotationArguments : R|kotlin/Any| {
|
||||
public constructor(): R|test/AnnotationInAnnotationArguments|
|
||||
|
||||
}
|
||||
|
||||
public final enum class E : R|kotlin/Enum<test/E>| {
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|test/E| {
|
||||
private constructor(): R|test/E|
|
||||
|
||||
public final static enum entry ENTRY: R|test/E|
|
||||
public final static fun values(): R|kotlin/Array<test/E>| {
|
||||
}
|
||||
|
||||
public final static fun values(): R|kotlin/Array<test/E>| {
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|test/E| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/E>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/E>|
|
||||
|
||||
private constructor(): R|test/E|
|
||||
|
||||
public final static enum entry ENTRY: R|test/E|
|
||||
}
|
||||
|
||||
public final annotation class EnumOption : R|kotlin/Annotation| {
|
||||
@@ -44,4 +44,3 @@ public final annotation class StringOptions : R|kotlin/Annotation| {
|
||||
public constructor(vararg option: R|kotlin/Array<out kotlin/String>|): R|test/StringOptions|
|
||||
|
||||
}
|
||||
|
||||
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
@PROPERTY:R|test/Anno|(value = String(OK)) public final const val constant: R|kotlin/String| = String(OK)
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public final annotation class Anno : R|kotlin/Annotation| {
|
||||
public final val value: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
public constructor(value: R|kotlin/String|): R|test/Anno|
|
||||
|
||||
}
|
||||
Vendored
+3
@@ -1,3 +1,6 @@
|
||||
// IGNORE_FIR_METADATA_LOADING_K2
|
||||
// Ignore reason: KT-58080
|
||||
|
||||
@file:JvmMultifileClass
|
||||
@file:JvmName("Test")
|
||||
package test
|
||||
|
||||
+6
-7
@@ -1,16 +1,16 @@
|
||||
public final enum class E : R|kotlin/Enum<test/E>| {
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|test/E| {
|
||||
private constructor(): R|test/E|
|
||||
|
||||
public final static enum entry CAKE: R|test/E|
|
||||
public final static fun values(): R|kotlin/Array<test/E>| {
|
||||
}
|
||||
|
||||
public final static fun values(): R|kotlin/Array<test/E>| {
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|test/E| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/E>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/E>|
|
||||
|
||||
private constructor(): R|test/E|
|
||||
|
||||
public final static enum entry CAKE: R|test/E|
|
||||
}
|
||||
|
||||
public final annotation class EnumAnno : R|kotlin/Annotation| {
|
||||
@@ -22,7 +22,7 @@ public final annotation class EnumAnno : R|kotlin/Annotation| {
|
||||
}
|
||||
|
||||
public final class EnumArgumentWithCustomToString : R|kotlin/Any| {
|
||||
@R|test/EnumAnno|(value = R|test/E.CAKE|()) @R|test/EnumArrayAnno|(value = <implicitArrayOf>(R|test/E.CAKE|(), R|test/E.CAKE|())) public final fun annotated(): R|kotlin/Unit|
|
||||
@R|test/EnumAnno|(value = R|test/E.CAKE|) @R|test/EnumArrayAnno|(value = <implicitArrayOf>(R|test/E.CAKE|, R|test/E.CAKE|)) public final fun annotated(): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|test/EnumArgumentWithCustomToString|
|
||||
|
||||
@@ -35,4 +35,3 @@ public final annotation class EnumArrayAnno : R|kotlin/Annotation| {
|
||||
public constructor(vararg value: R|kotlin/Array<out test/E>|): R|test/EnumArrayAnno|
|
||||
|
||||
}
|
||||
|
||||
|
||||
compiler/testData/loadJava/compiledKotlinWithStdlib/annotations/JvmFieldInInterfaceCompanion.fir.txt
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
public abstract interface I : R|kotlin/Any| {
|
||||
public final companion object Companion : R|kotlin/Any| {
|
||||
@FIELD:R|kotlin/jvm/JvmField|() public final val x: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
@FIELD:R|kotlin/jvm/JvmField|() public final val y: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
private constructor(): R|test/I.Companion|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
public final const val ubyteConst: R|kotlin/UByte| = Byte(10)
|
||||
public get(): R|kotlin/UByte|
|
||||
|
||||
public final const val uintConst: R|kotlin/UInt| = Int(30)
|
||||
public get(): R|kotlin/UInt|
|
||||
|
||||
public final const val ulongConst: R|kotlin/ULong| = Long(40)
|
||||
public get(): R|kotlin/ULong|
|
||||
|
||||
public final const val ushortConst: R|kotlin/UShort| = Short(20)
|
||||
public get(): R|kotlin/UShort|
|
||||
|
||||
public final class A : R|kotlin/Any| {
|
||||
public final fun <@R|test/Ann|(ubyte = UByte(-1), ushort = UShort(-1), uint = UInt(-1), ulong = ULong(-1)) T> typeParam(): R|kotlin/Unit|
|
||||
|
||||
public final fun unsigned(s: R|@R|test/Ann|(ubyte = UByte(1), ushort = UShort(2), uint = UInt(3), ulong = ULong(4)) kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
public final fun unsignedConsts(s: R|@R|test/Ann|(ubyte = UByte(10), ushort = UShort(20), uint = UInt(30), ulong = ULong(40)) kotlin/String|): R|kotlin/Unit|
|
||||
|
||||
public constructor(): R|test/A|
|
||||
|
||||
}
|
||||
|
||||
@R|kotlin/annotation/Target|(allowedTargets = <implicitArrayOf>(R|kotlin/annotation/AnnotationTarget.TYPE|, R|kotlin/annotation/AnnotationTarget.TYPE_PARAMETER|)) public final annotation class Ann : R|kotlin/Annotation| {
|
||||
public final val ubyte: R|kotlin/UByte|
|
||||
public get(): R|kotlin/UByte|
|
||||
|
||||
public final val uint: R|kotlin/UInt|
|
||||
public get(): R|kotlin/UInt|
|
||||
|
||||
public final val ulong: R|kotlin/ULong|
|
||||
public get(): R|kotlin/ULong|
|
||||
|
||||
public final val ushort: R|kotlin/UShort|
|
||||
public get(): R|kotlin/UShort|
|
||||
|
||||
public constructor(ubyte: R|kotlin/UByte|, ushort: R|kotlin/UShort|, uint: R|kotlin/UInt|, ulong: R|kotlin/ULong|): R|test/Ann|
|
||||
|
||||
}
|
||||
Vendored
+9
-10
@@ -15,20 +15,19 @@ public final annotation class Bnno : R|kotlin/Annotation| {
|
||||
}
|
||||
|
||||
public final enum class Eee : R|kotlin/Enum<test/Eee>| {
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|test/Eee| {
|
||||
}
|
||||
|
||||
public final static fun values(): R|kotlin/Array<test/Eee>| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/Eee>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/Eee>|
|
||||
|
||||
private constructor(): R|test/Eee|
|
||||
|
||||
public final static enum entry Entry1: R|test/Eee|
|
||||
public final static enum entry Entry2: R|test/Eee|
|
||||
public final static enum entry Entry3: R|test/Eee|
|
||||
public final static enum entry Entry4: R|test/Eee|
|
||||
}
|
||||
public final static fun values(): R|kotlin/Array<test/Eee>| {
|
||||
}
|
||||
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|test/Eee| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/Eee>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/Eee>|
|
||||
|
||||
}
|
||||
|
||||
Vendored
+9
-10
@@ -9,15 +9,6 @@ public final annotation class B : R|kotlin/Annotation| {
|
||||
}
|
||||
|
||||
public final enum class E : R|kotlin/Enum<test/E>| {
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|test/E| {
|
||||
}
|
||||
|
||||
public final static fun values(): R|kotlin/Array<test/E>| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/E>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/E>|
|
||||
|
||||
public final val x: R|kotlin/String|
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
@@ -26,5 +17,13 @@ public final enum class E : R|kotlin/Enum<test/E>| {
|
||||
|
||||
private constructor(@R|test/A|() x: R|kotlin/String|, @R|test/B|() y: R|kotlin/Int|): R|test/E|
|
||||
|
||||
}
|
||||
public final static fun values(): R|kotlin/Array<test/E>| {
|
||||
}
|
||||
|
||||
public final static fun valueOf(value: R|kotlin/String|): R|test/E| {
|
||||
}
|
||||
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/E>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/E>|
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user