Files
kotlin-fork/compiler/testData/diagnostics/irInterpreter/recursionAccess.kt
T
2023-10-13 15:42:58 +00:00

16 lines
338 B
Kotlin
Vendored

// FIR_IDENTICAL
// !RENDER_IR_DIAGNOSTICS_FULL_TEXT
// !LANGUAGE: +IntrinsicConstEvaluation
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
object A {
const val recursive1: Int = <!EVALUATION_ERROR!>1 + B.recursive2<!>
}
class B {
companion object {
const val recursive2: Int = <!EVALUATION_ERROR!>A.recursive1 + 2<!>
}
}