mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
14 lines
235 B
Kotlin
Vendored
14 lines
235 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
inline class R(private val r: Int) {
|
|
fun test() = ok()
|
|
|
|
companion object {
|
|
@JvmStatic
|
|
private fun ok() = "OK"
|
|
}
|
|
}
|
|
|
|
fun box() = R(0).test() |