18 lines
357 B
Kotlin
Vendored
18 lines
357 B
Kotlin
Vendored
// !LANGUAGE: +IntrinsicConstEvaluation
|
|
// DONT_TARGET_EXACT_BACKEND: JVM
|
|
// DONT_TARGET_EXACT_BACKEND: JS
|
|
// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, NATIVE, WASM
|
|
|
|
// 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),
|
|
}
|