Don't suggest destructuring if at least half components not used
So #KT-16828 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
318314f1a4
commit
feb9dd4d83
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
data class My(val first: String, val second: Int, val third: Boolean)
|
||||
|
||||
fun foo(list: List<My>) {
|
||||
list.forEach { (_, second, third) ->
|
||||
println(second)
|
||||
println(third)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user