Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_1_BETA_3
/
.
/
groovy-core
/
src
/
test
/
groovy
/
bugs
/
Bytecode5Bug.groovy
blob: 675eed8a84b2c86912e8e9debcf9bd90588b0a3e [
file
] [
log
] [
blame
]
package
groovy
.
bugs
/**
* @version $Revision$
*/
class
Bytecode5Bug
extends
GroovyTestCase
{
void
testUsingLocalVar
()
{
def
c
=
0
getCollection
().
each
{
c
+=
it
}
assert
c
==
10
}
def
getCollection
()
{
[
1
,
2
,
3
,
4
]
}
}