blob: b622be80dc13dac34114d5d3b3de23cd10ff10d1 [file] [log] [blame]
package org.codehaus.groovy.classgen
class ReflectorLoaderTest extends GroovyTestCase {
void testDuplication(){
def program = '''
closureA = {}
closureB = {closureA ( ) }
'''
def binding = new Binding()
( new GroovyShell ( binding ) ).evaluate ( program )
binding.closureB.call( )
}
}