mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
12 lines
267 B
Kotlin
Vendored
12 lines
267 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: JVM_IR
|
|
|
|
inline class Composed(val s: String) {
|
|
private constructor(s1: String, s2: String) : this(s1 + s2)
|
|
|
|
companion object {
|
|
fun p1(s: String) = Composed("O", s)
|
|
}
|
|
}
|
|
|
|
fun box() = Composed.p1("K").s |