"Simplify using destructuring declaration" is now applicable for function literals #KT-13941 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-03 12:18:29 +03:00
parent 42aea59253
commit df0cf3da84
19 changed files with 193 additions and 9 deletions
@@ -0,0 +1,10 @@
// WITH_RUNTIME
data class XY(val x: Int, val y: Int)
fun test(xys: Array<XY>) {
xys.forEach { (x, y) ->
println(x)
val y = y + x
println(y)
}
}