Run LoadJava.CompiledKotlin test group with stdlib if some enum is inside

This commit makes compiler tests working similarly to ResolveByStub IDE tests.
This commit is contained in:
Mikhail Glukhikh
2022-08-17 20:08:24 +02:00
committed by Space
parent fb1c80a7c9
commit d3648bce0c
35 changed files with 476 additions and 500 deletions
@@ -0,0 +1,17 @@
// ALLOW_AST_ACCESS
// NO_CHECK_SOURCE_VS_BINARY
//^ While compiling source, we do not store annotation default values, but we load them when reading compiled files
package test
annotation class Anno(val value: String = "0", val x: Int = 0)
annotation class Bnno
enum class Eee {
@Anno()
Entry1,
Entry2,
@Anno("3") @Bnno
Entry3,
@Anno("4", 4)
Entry4,
}
@@ -0,0 +1,39 @@
package test
public final annotation class Anno : kotlin.Annotation {
/*primary*/ public constructor Anno(/*0*/ value: kotlin.String = ..., /*1*/ x: kotlin.Int = ...)
public final val value: kotlin.String = "0"
public final fun `<get-value>`(): kotlin.String
public final val x: kotlin.Int = 0
public final fun `<get-x>`(): kotlin.Int
}
public final annotation class Bnno : kotlin.Annotation {
/*primary*/ public constructor Bnno()
}
public final enum class Eee : kotlin.Enum<test.Eee> {
@test.Anno enum entry Entry1
enum entry Entry2
@test.Anno(value = "3") @test.Bnno enum entry Entry3
@test.Anno(value = "4", x = 4) enum entry Entry4
/*primary*/ private constructor Eee()
@kotlin.internal.IntrinsicConstEvaluation public final override /*1*/ /*fake_override*/ val name: kotlin.String
public final override /*1*/ /*fake_override*/ fun `<get-name>`(): kotlin.String
public final override /*1*/ /*fake_override*/ val ordinal: kotlin.Int
public final override /*1*/ /*fake_override*/ fun `<get-ordinal>`(): kotlin.Int
protected final override /*1*/ /*fake_override*/ fun clone(): kotlin.Any
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.Eee): kotlin.Int
protected/*protected and package*/ final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun finalize(): kotlin.Unit
public final override /*1*/ /*fake_override*/ /*isHiddenForResolutionEverywhereBesideSupercalls*/ fun getDeclaringClass(): java.lang.Class<test.Eee!>!
// Static members
public final /*synthesized*/ val entries: kotlin.enums.EnumEntries<test.Eee>
public final /*synthesized*/ fun `<get-entries>`(): kotlin.enums.EnumEntries<test.Eee>
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.Eee
public final /*synthesized*/ fun values(): kotlin.Array<test.Eee>
}