JVM_IR KT-45998 fix protected companion object member accessors

Also, make sure it works with indy-based SAM conversions.
This commit is contained in:
Dmitry Petrov
2021-04-16 16:53:16 +03:00
committed by TeamCityServer
parent b1fb0ba9e1
commit 9a4a39e680
10 changed files with 164 additions and 19 deletions
@@ -17482,6 +17482,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class WithAccessor extends AbstractLightAnalysisModeTest {
@TestMetadata("protectedSuperclassCompanionObjectMember.kt")
public void ignoreProtectedSuperclassCompanionObjectMember() throws Exception {
runTest("compiler/testData/codegen/box/invokedynamic/sam/functionRefToJavaInterface/withAccessor/protectedSuperclassCompanionObjectMember.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
@@ -31765,6 +31770,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SyntheticAccessors extends AbstractLightAnalysisModeTest {
@TestMetadata("protectedSuperclassCompanionObjectMember.kt")
public void ignoreProtectedSuperclassCompanionObjectMember() throws Exception {
runTest("compiler/testData/codegen/box/syntheticAccessors/protectedSuperclassCompanionObjectMember.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}