[IR] Report error from IR interpreter on field recursive initialization

#KT-59890
#KT-61802 Fixed
This commit is contained in:
Ivan Kylchik
2023-09-12 18:17:27 +02:00
committed by Space Team
parent 98b3bdb175
commit 2df5b48474
5 changed files with 37 additions and 1 deletions
@@ -0,0 +1,15 @@
// FIR_IDENTICAL
// !RENDER_IR_DIAGNOSTICS_FULL_TEXT
// !LANGUAGE: +IntrinsicConstEvaluation
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
object A {
const val recursive1: Int = 1 <!EVALUATION_ERROR!>+ B.recursive2<!>
}
class B {
companion object {
const val recursive2: Int = A.recursive1 <!EVALUATION_ERROR!>+ 2<!>
}
}