Files
kotlin-fork/idea/testData/intentions/removeForLoopIndicesIntention/inapplicableIndexUse.kt
T

7 lines
160 B
Kotlin

// IS_APPLICABLE: FALSE
//ERROR: Unresolved reference: withIndices
fun foo(b: List<Int>) {
for ((i, <caret>c) in b.withIndices()) {
return i
}
}