Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/captureInlineClassInstanceInObject.kt
T

12 lines
193 B
Kotlin
Vendored

// WITH_RUNTIME
@JvmInline
value class R(private val r: Int) {
fun test() = object {
override fun toString() = ok()
}.toString()
fun ok() = "OK"
}
fun box() = R(0).test()