mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
12 lines
243 B
Kotlin
Vendored
12 lines
243 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class IC(val x: String) {
|
|
private fun privateFun() = x
|
|
override fun toString() = privateFun()
|
|
}
|
|
|
|
fun box(): String {
|
|
val x: Any = IC("OK")
|
|
return x.toString()
|
|
} |