the source for a parameter of the generated copy() function is the corresponding constructor parameter
#KT-8698 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
data class A(val <caret>x: Int)
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = A(x = 1)
|
||||
val b = a.copy(x = 2)
|
||||
}
|
||||
Reference in New Issue
Block a user