Files
kotlin-fork/compiler/testData/codegen/box/dataClasses/copy/withSecondaryConstructor.kt
T
2018-06-09 19:15:38 +03:00

11 lines
182 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
data class A(val o: String, val k: String) {
constructor() : this("O", "k")
}
fun box(): String {
val a = A().copy(k = "K")
return a.o + a.k
}