repo.or.cz
/
groovy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed build console
[groovy.git]
/
src
/
test
/
gls
/
scope
/
BlockScopeVisibilityTest.groovy
blob
632923d17acc9d12adac43c8cae7f04a9c0474e7
1
package
gls
.
scope
2
3
class
BlockScopeVisibilityTest
extends
CompilableTestSupport
{
4
5
public void
testForLoopVariableNotVisibleOutside
() {
6
7
assertScript
(
""
"
8
i=1
9
for (i in [1,2]) {}
10
assert i==1
11
"
""
)
12
}
13
14
}