Report errors on annotations with wrong use site targets

#KT-9580 In Progress
This commit is contained in:
Mikhail Zarechenskiy
2017-09-07 12:31:28 +03:00
parent dafb52a44a
commit a4766cc293
7 changed files with 49 additions and 8 deletions
@@ -1682,6 +1682,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.kt");
doTest(fileName);
}
@TestMetadata("wrongParamAnnotationsOnTypes.kt")
public void testWrongParamAnnotationsOnTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes.kt");
doTest(fileName);
}
}
}
@@ -1682,6 +1682,12 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/SparamAnnotations.kt");
doTest(fileName);
}
@TestMetadata("wrongParamAnnotationsOnTypes.kt")
public void testWrongParamAnnotationsOnTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/wrongParamAnnotationsOnTypes.kt");
doTest(fileName);
}
}
}