Files
kotlin-fork/compiler/testData/codegen/box/enum/enumEntriesIntrinsicMultipleEnums.txt
T
Alexander Udalov db31f1f926 Tests: update some backend tests on enum entries
The enumEntriesIntrinsicMultipleEnums.kt test was supposed to check that
JVM backend generates 3 `$EntriesIntrinsicMappings` classes: for X, for
Y, and for Z. Mappings classes are generated for enums without
`entries`, i.e. Kotlin enums compiled without `EnumEntries` language
feature, and Java enums. The test incorrectly _enabled_ the language
feature for X though, and `$EntriesIntrinsicMappings` for X was
generated anyway because of KT-61208.

To keep the original intention of the test, I'm disabling the language
feature for X, so that it will be considered as enum without `entries`.
KT-61208 will be fixed in a separate commit (with separate tests).

The boxInline and bytecodeText tests changed their meaning when language
feature EnumEntries started to be enabled by default, so those changes
are a continuation to ebd43fc8c0. The behavior did not change after
enabling the feature, once again because of KT-61208.

Also, remove obsolete error suppressions which are no longer needed
after 64c8ce18a0.
2023-10-16 20:22:20 +00:00

31 lines
1.1 KiB
Plaintext
Vendored

Module: lib
@kotlin.Metadata
public final enum class X {
// source: 'X.kt'
private synthetic final static field $VALUES: X[]
public final enum static field X1: X
public final enum static field X2: X
private synthetic final static method $values(): X[]
static method <clinit>(): void
private method <init>(p0: java.lang.String, p1: int): void
public static method valueOf(p0: java.lang.String): X
public static method values(): X[]
}
Module: box
@kotlin.Metadata
public synthetic final class BoxKt$EntriesIntrinsicMappings {
// source: 'box.kt'
public synthetic final static field entries$0: kotlin.enums.EnumEntries
public synthetic final static field entries$1: kotlin.enums.EnumEntries
public synthetic final static field entries$2: kotlin.enums.EnumEntries
static method <clinit>(): void
public synthetic inner class BoxKt$EntriesIntrinsicMappings
}
@kotlin.Metadata
public final class BoxKt {
// source: 'box.kt'
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
public synthetic inner class BoxKt$EntriesIntrinsicMappings
}