Report error instead of warning for deprecation level HIDDEN

Since functions usually are hidden from resolution when they are
deprecated-hidden, the problem can only be reproduced for properties with
deprecated-hidden accessors, where DeprecatedCallChecker reported warnings
instead of errors
This commit is contained in:
Alexander Udalov
2016-10-07 15:07:48 +03:00
parent 6e0e8c6dc3
commit 83c86d06ed
5 changed files with 67 additions and 10 deletions
@@ -5952,6 +5952,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("hiddenPropertyAccessors.kt")
public void testHiddenPropertyAccessors() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/deprecated/hiddenPropertyAccessors.kt");
doTest(fileName);
}
@TestMetadata("importJavaSamInterface.kt")
public void testImportJavaSamInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/deprecated/importJavaSamInterface.kt");