Introduce Language Feature for annotations with wrong targets

#KT-9580 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-09-11 01:15:38 +03:00
parent a4766cc293
commit 2048a74302
10 changed files with 73 additions and 21 deletions
@@ -1688,6 +1688,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes.kt");
doTest(fileName);
}
@TestMetadata("wrongParamAnnotationsOnTypesError.kt")
public void testWrongParamAnnotationsOnTypesError() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.kt");
doTest(fileName);
}
}
}
@@ -1688,6 +1688,12 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes.kt");
doTest(fileName);
}
@TestMetadata("wrongParamAnnotationsOnTypesError.kt")
public void testWrongParamAnnotationsOnTypesError() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypesError.kt");
doTest(fileName);
}
}
}