Simplify for intention: applicable of any numbers of properties used #KT-10779 Fixed
This commit is contained in:
+10
@@ -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)
|
||||
Reference in New Issue
Block a user