Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_1_BETA_3
/
.
/
groovy-core
/
src
/
test
/
groovy
/
bugs
/
CallingClosuresWithClosuresBug.groovy
blob: 99f25b209b0be24c64a7cf05b1c9a8fd8b6060f1 [
file
] [
log
] [
blame
]
package
groovy
.
bugs
/**
* @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
}
}