Files
kotlin-fork/compiler/testData/codegen/box/dataClasses/copy/withSecondaryConstructor.kt
T
Alexey Andreev 466540399c Fix translation of copy() fun in data class
Fix translation of copy() function in data class which has secondary
constructor in JS BE. See KT-16717.
2017-03-28 11:32:44 +03:00

10 lines
157 B
Kotlin
Vendored

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
}