blob: cec6e1daafb56eb4dff21b7f2cb409ef0a5e4e49 [file] [log] [blame]
/**
* Test case for a bug with nested closures
*/
class NestedClosureBugTest extends GroovyTestCase {
property b
void testNestedClosureBug() {
b = NodeBuilder.newInstance()
root = b.root(['a':'xyz'], {
b.child({
b.grandChild()
})
})
println(root)
}
}