Files
kotlin-fork/idea/testData/intentions/removeForLoopIndices/inapplicableIndexUse.kt
T
2015-07-21 14:59:22 +03:00

9 lines
151 B
Kotlin
Vendored

// IS_APPLICABLE: FALSE
// WITH_RUNTIME
fun foo(b: List<Int>) : Int {
for ((<caret>i, c) in b.withIndex()) {
return i
}
return 0
}