Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
sum
/
nonZeroInitial.kt
blob: b69b11e7e02ce713344d93b1617eacd5d137b826 [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'sum()'"
// IS_APPLICABLE_2: false
fun foo
(
list
:
List
<
Int
>):
Int
{
var
s
=
1
<caret>
for
(
item
in
list
)
{
s
+=
item
}
return
s
}