Fix nested classes codegen bug

When constructing a closure, codegen in some cases incorrectly determined if
it needed to store a reference from a nested class to the outer
This commit is contained in:
Alexander Udalov
2013-01-17 22:06:11 +04:00
parent 5c56900a09
commit c4a3963925
3 changed files with 26 additions and 8 deletions
@@ -38,6 +38,11 @@ public class InnerNestedGenTestGenerated extends AbstractCodegenTest {
doTest("compiler/testData/codegen/innerNested/createNestedClass.kt");
}
@TestMetadata("createdNestedInOuterMember.kt")
public void testCreatedNestedInOuterMember() throws Exception {
doTest("compiler/testData/codegen/innerNested/createdNestedInOuterMember.kt");
}
@TestMetadata("dataLocalVariable.kt")
public void testDataLocalVariable() throws Exception {
doTest("compiler/testData/codegen/innerNested/dataLocalVariable.kt");