mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
213 B
Kotlin
Vendored
11 lines
213 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
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()
|
|
} |