JVM IR: fix behavior of Enum.entries for unlowered enums

#KT-57671 Fixed
This commit is contained in:
Alexander Udalov
2023-04-20 19:19:06 +02:00
committed by Space Team
parent 449c866c7a
commit f04d01cf21
6 changed files with 75 additions and 5 deletions
@@ -0,0 +1,13 @@
// TARGET_BACKEND: JVM_IR
// FILE: 1.kt
enum class E
// FILE: 2.kt
@OptIn(ExperimentalStdlibApi::class)
fun test() {
E.entries
}
// 0 EntriesMappings
@@ -0,0 +1,13 @@
// TARGET_BACKEND: JVM_IR
// FILE: 1.kt
@OptIn(ExperimentalStdlibApi::class)
fun test() {
E.entries
}
// FILE: 2.kt
enum class E
// 0 EntriesMappings