if a shared variable is a result of the block, release it only after it has been put

#KT-2151 Fixed
This commit is contained in:
Dmitry Jemerov
2012-06-08 17:58:09 +02:00
parent 56310599a5
commit 8baae95531
4 changed files with 37 additions and 4 deletions
@@ -62,4 +62,8 @@ public class ClosuresGenTest extends CodegenTestCase {
public void testEnclosingThis() throws Exception {
blackBoxFile("classes/enclosingThis.jet");
}
public void testKt2151() {
blackBoxFile("regressions/kt2151.kt");
}
}