Files
kotlin-fork/idea/testData/intentions/loopToCallChain/itAlreadyUsed.kt
T
2016-08-16 17:38:17 +03:00

12 lines
263 B
Kotlin
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'any{}'"
// IS_APPLICABLE_2: false
fun foo(list: List<String>, it: Int) {
var found = false
<caret>for (s in list) {
if (s.length > it) {
found = true
break
}
}
}