Sign in
apache
/
groovy
/
67cce94e9c08bbf3a4f7611aec65e50c8e8d014b
/
.
/
groovy
/
src
/
test
/
gls
/
scope
/
BlockScopeVisibilityTest.groovy
blob: 632923d17acc9d12adac43c8cae7f04a9c0474e7 [
file
] [
log
] [
blame
]
package
gls
.
scope
class
BlockScopeVisibilityTest
extends
CompilableTestSupport
{
public
void
testForLoopVariableNotVisibleOutside
()
{
assertScript
(
"""
i=1
for (i in [1,2]) {}
assert i==1
"""
)
}
}