Files
kotlin-fork/compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kt53272.kt
T
2023-04-19 13:52:48 +00:00

17 lines
284 B
Kotlin
Vendored

// !LANGUAGE: +IntrinsicConstEvaluation
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
// FILE: 1.kt
const val name = E.OK.<!EVALUATED("OK")!>name<!>
// STOP_EVALUATION_CHECKS
fun box(): String = name
// FILE: 2.kt
enum class E(val parent: E?) {
X(null),
OK(X),
}