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
}
}