14 lines
253 B
Kotlin
Vendored
14 lines
253 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// WORKS_WHEN_VALUE_CLASS
|
|
// LANGUAGE: +ValueClasses
|
|
|
|
OPTIONAL_JVM_INLINE_ANNOTATION
|
|
value class R(private val r: Int) {
|
|
private fun ok() = "OK"
|
|
|
|
companion object {
|
|
fun test(r: R) = r.ok()
|
|
}
|
|
}
|
|
|
|
fun box() = R.test(R(0)) |