Files
kotlin-fork/compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kt58717.kt
T
2023-07-10 13:19:51 +00:00

20 lines
289 B
Kotlin
Vendored

// !LANGUAGE: +IntrinsicConstEvaluation
// TARGET_BACKEND: JVM_IR
// TARGET_BACKEND: JS_IR
// TARGET_BACKEND: NATIVE
var result = "Fail"
object O {
fun foo() {}
init {
result = "OK"
}
}
fun box(): String {
O::foo.<!EVALUATED("foo")!>name<!>
return result
}