Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
sum
/
smartCast.kt.after
blob: 4050082f424ba359d35b7af2e42d4d30b701f765 [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'filterIsInstance<>().sum()'"
// INTENTION_TEXT_2: "Replace with 'asSequence().filterIsInstance<>().sum()'"
fun foo
(
list
:
List
<
Any
>){
val
<caret>
result
=
list
.
filterIsInstance
<
Int
>()
.
sum
()
}