Don't suggest destructuring if at least half components not used

So #KT-16828 Fixed
This commit is contained in:
mglukhikh
2017-03-31 13:10:40 +03:00
committed by Mikhail Glukhikh
parent 318314f1a4
commit feb9dd4d83
8 changed files with 52 additions and 22 deletions
@@ -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)
}
}