Report deprecation on usage of type alias expanded to a deprecated class

#KT-15243 Fixed
This commit is contained in:
Dmitry Petrov
2017-05-17 16:04:29 +03:00
parent a2db4dc0d5
commit c1ef0bfcdb
6 changed files with 56 additions and 8 deletions
@@ -6607,6 +6607,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("typealiasForDeprecatedClass.kt")
public void testTypealiasForDeprecatedClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/deprecated/typealiasForDeprecatedClass.kt");
doTest(fileName);
}
@TestMetadata("typealiasUsage.kt")
public void testTypealiasUsage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/deprecated/typealiasUsage.kt");