Sign in
apache
/
groovy
/
4ce380cda5b437999726dfd041cb1b0781e91ec9
/
.
/
groovy
/
modules
/
classic
/
src
/
test
/
groovy
/
bugs
/
Bytecode3Bug.groovy
blob: 1246ff65d129755c64f415cd2423b78b602f5017 [
file
] [
log
] [
blame
]
/**
* @version $Revision$
*/
class
Bytecode3Bug
extends
GroovyTestCase
{
count
void
testIncrementPropertyInclosure
()
{
args
=
[
1
,
2
,
3
]
m
=
[:]
count
=
0
doLoop
(
args
,
m
)
assert
count
==
3
}
void
doLoop
(
args
,
m
)
{
args
.
each
{
m
.
put
(
it
,
count
++)
}
}
}