Fix StackOverflow in interpreter for case with recursive enum init

#KT-54884 Fixed
This commit is contained in:
Ivan Kylchik
2022-11-17 14:08:22 +01:00
committed by Space Team
parent d512420204
commit e3f8aa255a
4 changed files with 43 additions and 10 deletions
@@ -0,0 +1,13 @@
// TARGET_BACKEND: JVM
// IGNORE_FIR_DIAGNOSTICS
// !DIAGNOSTICS: -UNINITIALIZED_ENUM_ENTRY
enum class TestEnum(val testNaming: String) {
OK(OK.name),
}
const val name = TestEnum.OK.name
fun box(): String {
return name
}