Files
kotlin-fork/compiler/testData/cli/jvm/enumEntriesNotEnabled.out
T
Vsevolod Tolstopyatov e3bff290bd [JVM] Lower .entries calls on Kotlin enums
Leveraging the same mechanism with $EntriesMapping as Java enums.
Old (compiled with LV/AV < 1.8) enums are detected by looking for
static special <get-entries> method that cannot be introduced on
Kotlin enums otherwise

#KT-53236
2022-08-12 09:35:22 +00:00

5 lines
172 B
Plaintext
Vendored

compiler/testData/cli/jvm/enumEntriesNotEnabled.kt:7:26: error: unresolved reference: entries
val entries = MyEnum.entries
^
COMPILATION_ERROR