Refactoring + minor fixes: destructure intention

This commit is contained in:
Mikhail Glukhikh
2016-10-04 20:27:36 +03:00
parent dd7d7a5fc7
commit 70949d10da
11 changed files with 223 additions and 157 deletions
@@ -0,0 +1,10 @@
// WITH_RUNTIME
data class XY(val x: String, val y: Int)
fun test(xys: Array<XY>) {
for ((x) in xys) {
println(x)
val xx = x
println(xx)
}
}