Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_0
/
.
/
groovy-core
/
src
/
test
/
groovy
/
bugs
/
CallingClosuresWithClosuresBug.groovy
blob: ac08850dc2c95bd6dc1c879cc07c446548edcdd8 [
file
] [
log
] [
blame
]
/**
* @version $Revision$
*/
class
CallingClosuresWithClosuresBug
extends
GroovyTestCase
{
void
testBug
()
{
def
a
=
{
1
}
// old workaround
//def b = {a.call()}
def
b
=
{
a
()}
def
value
=
b
()
assert
value
==
1
}
}