don't generate direct increment and similar bytecodes for variables which are captured in closure (KT-1980)

This commit is contained in:
Dmitry Jemerov
2012-06-02 22:41:37 +02:00
parent ba9c3d73e7
commit 58c7c7aea1
4 changed files with 47 additions and 10 deletions
@@ -391,4 +391,9 @@ public class ClassGenTest extends CodegenTestCase {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt1918.kt");
}
public void testKt1980() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt1980.kt");
}
}