Simplify for intention: applicable of any numbers of properties used #KT-10779 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-05-27 15:49:25 +03:00
parent 68c5e8e190
commit 792b37bce4
11 changed files with 141 additions and 23 deletions
@@ -0,0 +1,10 @@
// WITH_RUNTIME
fun main(args: Array<String>) {
val list = listOf(MyClass(1, 2, 3, 4))
for ((a, b, c) in list) {
println("$a$c")
}
}
data class MyClass(val a: Int, val b: Int, val c: Int, val d: Int)