KT-4820: Intention to remove an unused index variable from a for loop.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// IS_APPLICABLE: FALSE
|
||||
//ERROR: Unresolved reference: withIndices
|
||||
fun foo(b: List<Int>) {
|
||||
for ((i, <caret>c) in b.withIndices()) {
|
||||
return i
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user