[IR] Report error from IR interpreter on field recursive initialization
#KT-59890 #KT-61802 Fixed
This commit is contained in:
@@ -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<!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user