Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/objectInInlineClassFun.kt
T
2020-04-10 14:49:27 +03:00

10 lines
191 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
inline class R(private val r: Int) {
fun test() =
object {
override fun toString() = "OK"
}.toString()
}
fun box() = R(0).test()