FIR: Refine visibility check for class members

This commit is contained in:
Denis.Zharkov
2021-10-18 12:21:57 +03:00
committed by TeamCityServer
parent d702365632
commit fba44759c0
23 changed files with 246 additions and 26 deletions
@@ -32019,6 +32019,18 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/visibility/lackOfInvisibleSetterOfJavaClassInSamePackage.kt");
}
@Test
@TestMetadata("overrideOfMemberInPackagePrivateClass.kt")
public void testOverrideOfMemberInPackagePrivateClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/overrideOfMemberInPackagePrivateClass.kt");
}
@Test
@TestMetadata("privateCompanionInSuperClass.kt")
public void testPrivateCompanionInSuperClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/privateCompanionInSuperClass.kt");
}
@Test
@TestMetadata("protectedInternal.kt")
public void testProtectedInternal() throws Exception {
@@ -32019,6 +32019,18 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/visibility/lackOfInvisibleSetterOfJavaClassInSamePackage.kt");
}
@Test
@TestMetadata("overrideOfMemberInPackagePrivateClass.kt")
public void testOverrideOfMemberInPackagePrivateClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/overrideOfMemberInPackagePrivateClass.kt");
}
@Test
@TestMetadata("privateCompanionInSuperClass.kt")
public void testPrivateCompanionInSuperClass() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/privateCompanionInSuperClass.kt");
}
@Test
@TestMetadata("protectedInternal.kt")
public void testProtectedInternal() throws Exception {