Change Signature: Process implicit usages of data class 'componentN' functions

#KT-9393 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-22 15:30:05 +03:00
parent 4fba251fba
commit 2895e2e86f
15 changed files with 275 additions and 13 deletions
@@ -0,0 +1,11 @@
data class <caret>X(val a: Int, val b: Int, val c: Int) {
}
fun test() {
val (a, b) = X(1, 2, 3)
val aa = X(1, 2, 3).component1()
val bb = X(1, 2, 3).component2()
val cc = X(1, 2, 3).component3()
for ((a, b) in listOf(X(1, 2, 3))) {}
}