[FE] Prohibit protected members in final expected or actual classes

^KT-28850 Fixed
This commit is contained in:
Roman Efremov
2023-04-05 15:07:08 +02:00
committed by Space Team
parent 2f5b1dff16
commit b368b78faa
8 changed files with 107 additions and 4 deletions
@@ -21232,6 +21232,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/modifiers/protected.kt");
}
@Test
@TestMetadata("protectedInExpectActual.kt")
public void testProtectedInExpectActual() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/protectedInExpectActual.kt");
}
@Test
@TestMetadata("redundantTargets.kt")
public void testRedundantTargets() throws Exception {
@@ -21232,6 +21232,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/modifiers/protected.kt");
}
@Test
@TestMetadata("protectedInExpectActual.kt")
public void testProtectedInExpectActual() throws Exception {
runTest("compiler/testData/diagnostics/tests/modifiers/protectedInExpectActual.kt");
}
@Test
@TestMetadata("redundantTargets.kt")
public void testRedundantTargets() throws Exception {