[FE 1.0] Report warning on non-deprecated overrides of deprecated members

Also don't propagate deprecation status to overrides after 1.7

^KT-47902 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-08-27 15:14:39 +03:00
parent 762d225bd7
commit ef9ad5af51
25 changed files with 993 additions and 52 deletions
@@ -8598,15 +8598,27 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
}
@Test
@TestMetadata("deprecatedInheritance.kt")
public void testDeprecatedInheritance() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedInheritance.kt");
@TestMetadata("deprecatedInheritance_after.kt")
public void testDeprecatedInheritance_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedInheritance_after.kt");
}
@Test
@TestMetadata("deprecatedPropertyInheritance.kt")
public void testDeprecatedPropertyInheritance() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedPropertyInheritance.kt");
@TestMetadata("deprecatedInheritance_before.kt")
public void testDeprecatedInheritance_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedInheritance_before.kt");
}
@Test
@TestMetadata("deprecatedPropertyInheritance_after.kt")
public void testDeprecatedPropertyInheritance_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedPropertyInheritance_after.kt");
}
@Test
@TestMetadata("deprecatedPropertyInheritance_before.kt")
public void testDeprecatedPropertyInheritance_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedPropertyInheritance_before.kt");
}
@Test
@@ -8598,15 +8598,27 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
}
@Test
@TestMetadata("deprecatedInheritance.kt")
public void testDeprecatedInheritance() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedInheritance.kt");
@TestMetadata("deprecatedInheritance_after.kt")
public void testDeprecatedInheritance_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedInheritance_after.kt");
}
@Test
@TestMetadata("deprecatedPropertyInheritance.kt")
public void testDeprecatedPropertyInheritance() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedPropertyInheritance.kt");
@TestMetadata("deprecatedInheritance_before.kt")
public void testDeprecatedInheritance_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedInheritance_before.kt");
}
@Test
@TestMetadata("deprecatedPropertyInheritance_after.kt")
public void testDeprecatedPropertyInheritance_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedPropertyInheritance_after.kt");
}
@Test
@TestMetadata("deprecatedPropertyInheritance_before.kt")
public void testDeprecatedPropertyInheritance_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/deprecated/deprecatedPropertyInheritance_before.kt");
}
@Test