Files
kotlin-fork/idea/testData/intentions/loopToCallChain/count/countSomethingAndNotNull.kt.after
T

7 lines
201 B
Plaintext
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun f(list: List<Any?>): Int{
val <caret>c = list.count { it != "" && it != null && it !is Int }
return c
}