mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
10 lines
213 B
Kotlin
Vendored
10 lines
213 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: JVM_IR
|
|
|
|
inline class S(val string: String)
|
|
|
|
class Test(val s: S) {
|
|
constructor(x: String, s: S) : this(S(x + s.string))
|
|
}
|
|
|
|
fun box() = Test("O", S("K")).s.string |