JVM IR: fix detection of enum entries in the same module

Use the new `IrClass.hasEnumEntries` flag added in the previous commit.

 #KT-61208 Fixed
This commit is contained in:
Alexander Udalov
2023-08-15 22:49:57 +02:00
committed by Space Team
parent c33c918bd4
commit 6219f7fc0d
21 changed files with 133 additions and 3 deletions
@@ -0,0 +1 @@
enum class EnumClass { A, B, C }
@@ -0,0 +1,11 @@
================ Step #1 =================
Cleaning output files:
out/production/module/EntriesKt.class
out/production/module/META-INF/module.kotlin_module
End of files
Compiling files:
src/entries.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,5 @@
fun test() {
EnumClass.entries.forEach {
println(it)
}
}
@@ -0,0 +1,7 @@
fun test() {
EnumClass.entries.forEach {
println(it)
}
}
// empty line
@@ -0,0 +1,7 @@
================ Step #1 =================
Compiling files:
src/entries.kt
End of files
Exit code: OK
------------------------------------------