Files
kotlin/compiler/testData/codegen/box/inlineClasses/hiddenConstructor/secondaryConstructor.kt
2018-09-10 10:42:18 +03:00

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