Sign in
apache
/
groovy
/
refs/tags/GROOVY_1_0
/
.
/
groovy-core
/
src
/
test
/
groovy
/
bugs
/
UnknownVariableBug.groovy
blob: 7e20425a800a83cc2752a8f2177c226c7cc122a3 [
file
] [
log
] [
blame
]
/**
* @version $Revision$
*/
class
UnknownVariableBug
extends
GroovyTestCase
{
void
testBug
()
{
def
shell
=
new
GroovyShell
()
shouldFail
{
shell
.
evaluate
"""
def x = foo
"""
}
shell
.
evaluate
"""
foo = 1
def x = foo
"""
}
}