blob: 1b2b4d7ec3d09431da88d1322571c1859b7cff35 [file]
// TARGET_BACKEND: JVM_IR
// TARGET_BACKEND: JS_IR
// TARGET_BACKEND: NATIVE
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
}