afd25548a2
#KT-14209 Fixed
9 lines
276 B
Kotlin
Vendored
9 lines
276 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// INTENTION_TEXT: "Replace with 'filterIsInstance<>().sum()'"
|
|
// INTENTION_TEXT_2: "Replace with 'asSequence().filterIsInstance<>().sum()'"
|
|
fun foo(list: List<Any>){
|
|
var result = 0
|
|
<caret>for (l in list)
|
|
if (l is Int)
|
|
result += l
|
|
} |