the source for a parameter of the generated copy() function is the corresponding constructor parameter

#KT-8698 Fixed
This commit is contained in:
Dmitry Jemerov
2015-08-21 20:09:47 +02:00
parent 351e1863fc
commit b45af1d47a
4 changed files with 17 additions and 1 deletions
@@ -0,0 +1,6 @@
data class A(val y: Int)
fun main(args: Array<String>) {
val a = A(y = 1)
val b = a.copy(y = 2)
}