[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:
+18
-6
@@ -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
|
||||
|
||||
+18
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user