Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ec80c21fd118667fdb2e851da7eea5d76d95eb52
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
count
/
countSomethingAndNotNull.kt
blob: 98b96a2512d946e786c6e3e4e15c9095f6b047ea [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'count{}'"
// IS_APPLICABLE_2: false
fun f
(
list
:
List
<
Any
?>):
Int
{
var
c
=
0
<caret>
for
(
d
in
list
)
{
if
(
d
==
""
)
continue
if
(
d
!=
null
)
{
if
(
d
is
Int
)
continue
c
++
}
}
return
c
}