Sign in
apache
/
groovy
/
4ce380cda5b437999726dfd041cb1b0781e91ec9
/
.
/
groovy
/
modules
/
classic
/
src
/
test
/
groovy
/
bugs
/
Bytecode5Bug.groovy
blob: 702f331f83bc9b27ff4e3416fab22aaaed279fe6 [
file
] [
log
] [
blame
]
/**
* @version $Revision$
*/
class
Bytecode5Bug
extends
GroovyTestCase
{
void
testUsingLocalVar
()
{
c
=
0
getCollection
().
each
{
c
+=
it
}
assert
c
==
10
}
getCollection
()
{
[
1
,
2
,
3
,
4
]
}
}