Introduce SinceKotlin annotation, check validity of its value

#KT-14297 Fixed
This commit is contained in:
Alexander Udalov
2016-09-26 19:52:51 +03:00
parent 8d660c2f6e
commit e3df8ed2fe
13 changed files with 215 additions and 2 deletions
@@ -981,6 +981,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("illegalSinceKotlinValue.kt")
public void testIllegalSinceKotlinValue() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/illegalSinceKotlinValue.kt");
doTest(fileName);
}
@TestMetadata("invalidTypesInAnnotationConstructor.kt")
public void testInvalidTypesInAnnotationConstructor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/invalidTypesInAnnotationConstructor.kt");