blob: d4f467272f0dfa3f305f507949b5abf8cf17adf1 [file] [log] [blame]
/**
* @author John Wilson
* @version $Revision$
*/
class Groovy239_Bug extends GroovyTestCase {
void testBug() {
a = makeClosure()
b = makeClosure()
c = makeClosure()
a() {
println("A")
b() {
println("B")
c() {
println("C")
}
}
}
}
makeClosure() {
return { it() }
}
void testBug2() {
a = { it() }
b = { it() }
c = { it() }
a() {
b() {
c() {
}
}
}
}
}