blob: da33ac1de2d72bc4312cd7126c933d7a1ef45918 [file]
// TARGET_BACKEND: JVM
// WITH_STDLIB
import kotlin.jvm.JvmInline
open class Expando {
val expansion: Expansion = Expansion()
}
@JvmInline
value class Expansion(val map: MutableMap<String, Any?> = mutableMapOf()) {
override inline fun toString(): String = "OK"
}
data class Foo(val i: Int): Expando() {
override fun toString(): String {
return "$expansion"
}
}
fun box(): String = Foo(0).toString()