Files
kotlin-fork/compiler/testData/codegen/box/involvesIrInterpreter/stringConcatenationWithObject.kt
T
Ivan Kylchik 7cf9dda8dc [JS] Support evaluation of const intrinsics for K2
#KT-56023 Fixed
#KT-51582 Fixed
2023-03-24 15:55:04 +00:00

17 lines
305 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// TARGET_BACKEND: NATIVE
// TARGET_BACKEND: JS_IR
object K : Code("K")
open class Code(val x: String) {
override fun toString() = "$x"
}
class O {
companion object: Code("O")
}
fun box(): String {
return "$O" + "$K" // must not be evaluated during compile time
}