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

12 lines
233 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
inline class S(val string: String)
class Test(val x: S, val y: S) {
constructor(x: S) : this(x, S("K"))
val test = x.string + y.string
}
fun box() = Test(S("O")).test