Files
kotlin-fork/idea/testData/intentions/removeForLoopIndices/inapplicableIndexUse.kt
T
2015-07-21 11:37:19 +03:00

9 lines
150 B
Kotlin
Vendored

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