mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
12 lines
226 B
Kotlin
Vendored
12 lines
226 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class R(private val r: Int) {
|
|
fun test() = object {
|
|
override fun toString() = ok()
|
|
}.toString()
|
|
|
|
fun ok() = "OK"
|
|
}
|
|
|
|
fun box() = R(0).test() |