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.
This commit is contained in:
committed by
Alexey Andreev
parent
b46205f60b
commit
466540399c
@@ -0,0 +1,9 @@
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user