FIR: Rework checking dispatch receivers applicability

Using `ownerLookupTag` might be wrong in case of private constuctors
 of inner classes: their owner is an Inner class, but expected
 dispach receiver is Outer
This commit is contained in:
Denis.Zharkov
2022-05-30 19:05:47 +03:00
committed by teamcity
parent 67e6687e89
commit 461d91a10e
8 changed files with 72 additions and 21 deletions
@@ -33496,6 +33496,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/visibility"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@Test
@TestMetadata("innerClassDelegatingConstructorCallToPrivate.kt")
public void testInnerClassDelegatingConstructorCallToPrivate() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/innerClassDelegatingConstructorCallToPrivate.kt");
}
@Test
@TestMetadata("innerConstructorThroughSubclass.kt")
public void testInnerConstructorThroughSubclass() throws Exception {