Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/contextsAndAccessors/accessPrivateInlineClassMethodFromCompanion2.kt
T
2020-03-24 18:58:19 +03:00

11 lines
185 B
Kotlin
Vendored

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