13 lines
254 B
Kotlin
Vendored
13 lines
254 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
|
|
@kotlin.jvm.JvmInline
|
|
value class R(private val r: Long) {
|
|
private fun ok() = "OK"
|
|
|
|
companion object {
|
|
fun test(r: R) = r.ok()
|
|
}
|
|
}
|
|
|
|
fun box() = R.test(R(0)) |