Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
plugins
/
groovy
/
testdata
/
groovy
/
refactoring
/
inlineLocal
/
anonymousClass1.test
blob: b1e92a0f0aa12850ed9b64aaa64134462e656400 [
file
] [
log
] [
blame
]
final
int
sum
=
0
print
<selection>
sum
</
selection
>
[
1
,
2
,
3
].
each
(
new
Closure
(
this
,
this
)
{
@Override
Object
call
(
it
)
{
it
+=
sum
}
})
print
sum
-----
print
0
[
1
,
2
,
3
].
each
(
new
Closure
(
this
,
this
)
{
@Override
Object
call
(
it
)
{
it
+=
0
}
})
print
0