Files
kotlin-fork/compiler/testData/codegen/box/involvesIrInterpreter/intrinsicConst/kt58717.kt
T
2023-07-06 11:00:14 +00:00

19 lines
263 B
Kotlin
Vendored

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