the source for a parameter of the generated copy() function is the corresponding constructor parameter
#KT-8698 Fixed
This commit is contained in:
+6
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user