Use withIndex intention: fix false positive for destructuring declaration

#KT-30341 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-03-18 18:27:13 +09:00
committed by Mikhail Glukhikh
parent cbdc79fcda
commit bd3d5a9dbb
3 changed files with 14 additions and 0 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
fun foo(list: List<Pair<String, String>>) {
var index = 0
<caret>for ((s1, s2) in list) {
index++
}
}