Use withIndex intention: fix false positive for destructuring declaration
#KT-30341 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
cbdc79fcda
commit
bd3d5a9dbb
@@ -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++
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user