mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
12 lines
215 B
Kotlin
Vendored
12 lines
215 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
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)) |