ProhibitRepeatedUseSiteTargetAnnotationsMigrationInspection: add test

#KT-36257
This commit is contained in:
Dmitry Gridin
2020-02-12 11:44:38 +07:00
parent 09e6ffdb0a
commit f8a21340d0
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// PROBLEM: none
@Repeatable
@Retention(AnnotationRetention.SOURCE)
annotation class Ann(val n: Int)
@get:Ann(10)<caret>
val a: String
@Ann(20) get() = "foo"

View File

@@ -6648,6 +6648,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/testData/inspectionsLocal/prohibitRepeatedUseSiteTargetAnnotationsMigration"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), null, true);
}
@TestMetadata("notApplicable.kt")
public void testNotApplicable() throws Exception {
runTest("idea/testData/inspectionsLocal/prohibitRepeatedUseSiteTargetAnnotationsMigration/notApplicable.kt");
}
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
runTest("idea/testData/inspectionsLocal/prohibitRepeatedUseSiteTargetAnnotationsMigration/simple.kt");