Fix for KT-5150: Accessors for private methods are not generated for get/set conventions

#KT-5150 Fixed
This commit is contained in:
Michael Bogdanov
2015-11-05 12:34:21 +03:00
parent 0fcaaa80df
commit bd2b01ac1c
4 changed files with 41 additions and 7 deletions
@@ -6422,6 +6422,21 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
}
}
@TestMetadata("compiler/testData/codegen/box/private")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Private extends AbstractBlackBoxCodegenTest {
public void testAllFilesPresentInPrivate() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/private"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("arrayConvention.kt")
public void testArrayConvention() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/private/arrayConvention.kt");
doTest(fileName);
}
}
@TestMetadata("compiler/testData/codegen/box/privateConstructors")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)