|
Groovy example source code file (UnknownVariableBug.groovy)
The Groovy UnknownVariableBug.groovy source code
package groovy.bugs
/**
* @version $Revision: 4996 $
*/
class UnknownVariableBug extends GroovyTestCase {
void testBug() {
def shell = new GroovyShell()
shouldFail {
shell.evaluate """
def x = foo
"""
}
shell.evaluate """
foo = 1
def x = foo
"""
}
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy UnknownVariableBug.groovy source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.