FIR: Fix VerifyError caused by private delegates

^KT-45048 Fixed
This commit is contained in:
Denis.Zharkov
2021-02-20 15:01:57 +03:00
parent ace66b7179
commit 4fffe7b9c8
13 changed files with 153 additions and 45 deletions
@@ -2251,6 +2251,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
runTest("jps-plugin/testData/incremental/withJava/other/multifileClassRemoved/");
}
@TestMetadata("multifileDependantUsage")
public void testMultifileDependantUsage() throws Exception {
runTest("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage/");
}
@TestMetadata("multifilePackagePartMethodAdded")
public void testMultifilePackagePartMethodAdded() throws Exception {
runTest("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded/");
@@ -2261,11 +2266,6 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
runTest("jps-plugin/testData/incremental/withJava/other/multifilePartsWithProperties/");
}
@TestMetadata("multifileDependantUsage")
public void testMultifileDependantUsage() throws Exception {
runTest("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage/");
}
@TestMetadata("optionalParameter")
public void testOptionalParameter() throws Exception {
runTest("jps-plugin/testData/incremental/withJava/other/optionalParameter/");
@@ -2574,6 +2574,19 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
}
}
@TestMetadata("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class MultifileDependantUsage extends AbstractIncrementalJvmJpsTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
}
public void testAllFilesPresentInMultifileDependantUsage() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("jps-plugin/testData/incremental/withJava/other/multifileDependantUsage"), Pattern.compile("^([^\\.]+)$"), null, TargetBackend.JVM_IR, true);
}
}
@TestMetadata("jps-plugin/testData/incremental/withJava/other/multifilePackagePartMethodAdded")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)