Files
kotlin-fork/idea/testData/intentions/loopToCallChain/any/ifAssign_nonBooleanResult.kt
T
2016-08-23 22:47:42 +03:00

12 lines
248 B
Kotlin
Vendored

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