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 c: Int, val a: Int, val b: Int) {
}
fun test() {
val (c, a, b) = X(3, 1, 2)
val aa = X(3, 1, 2).component2()
val bb = X(3, 1, 2).component3()
val cc = X(3, 1, 2).component1()
for ((c, a, b) in listOf(X(3, 1, 2))) {}
}