KT-1547 Wrong layout of closure classes

#KT-1547 fixed
This commit is contained in:
Evgeny Gerashchenko
2013-03-28 15:54:11 +04:00
parent 05e4164a0d
commit 0bc65321c2
5 changed files with 88 additions and 19 deletions
@@ -65,7 +65,7 @@ public class OuterClassGenTest extends CodegenTestCase {
public void testObjectLiteralInPackageClass() throws Exception {
OuterClassInfo expectedInfo = new OuterClassInfo("foo/FooPackage$src$outerClassInfo$", null, null);
doCustomTest("foo$packageObjectLiteral$1", expectedInfo);
doCustomTest("foo.FooPackage$packageObjectLiteral$1", expectedInfo);
}
public void testLocalClassInTopLevelFunction() throws Exception {
@@ -921,6 +921,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/closures/closureInsideConstrucor.kt");
}
@TestMetadata("closureOnTopLevel1.kt")
public void testClosureOnTopLevel1() throws Exception {
doTest("compiler/testData/codegen/box/closures/closureOnTopLevel1.kt");
}
@TestMetadata("closureOnTopLevel2.kt")
public void testClosureOnTopLevel2() throws Exception {
doTest("compiler/testData/codegen/box/closures/closureOnTopLevel2.kt");
}
@TestMetadata("closureWithParameter.kt")
public void testClosureWithParameter() throws Exception {
doTest("compiler/testData/codegen/box/closures/closureWithParameter.kt");