Generate toArray methods defined in classes inherited from collections as public even if they are declared with different visibility in Kotlin.

This commit is contained in:
Dmitry Petrov
2016-12-20 10:55:09 +03:00
parent c5d03578a3
commit 8fe9de1d35
10 changed files with 230 additions and 30 deletions
@@ -16367,6 +16367,18 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis
doTest(fileName);
}
@TestMetadata("toArrayShouldBePublic.kt")
public void testToArrayShouldBePublic() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toArrayShouldBePublic.kt");
doTest(fileName);
}
@TestMetadata("toArrayShouldBePublicWithJava.kt")
public void testToArrayShouldBePublicWithJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toArrayShouldBePublicWithJava.kt");
doTest(fileName);
}
@TestMetadata("toTypedArray.kt")
public void testToTypedArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toTypedArray.kt");