Created
June 9, 2017 23:08
-
-
Save kohsuke/c3fa1cc1ef4e8a5f7341d25440c3136a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Issue("JENKINS-38268") | |
@Test | |
void closureLocalVariable() { | |
assert evalCPS(''' | |
def x = { y=3 } | |
x() | |
return y | |
''') == 3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment