Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_0
/
.
/
groovy-core
/
src
/
test
/
groovy
/
bugs
/
UseClosureInClosureBug.groovy
blob: d84a19d5004cdbfc04bbf16e17f6556f72641264 [
file
] [
log
] [
blame
]
/**
* @version $Revision$
*/
class
UseClosureInClosureBug
extends
GroovyTestCase
{
void
testBugWithPrintln
()
{
def
inner
=
{
it
*
3
}
def
outer1
=
{
inner
(
it
)
+
5
}
def
outer2
=
{
inner
(
it
+
5
)
}
assert
17
==
outer1
(
4
)
assert
27
==
outer2
(
4
)
}
}