mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-19 15:52:28 +00:00
ProhibitRepeatedUseSiteTargetAnnotationsMigrationInspection: add test
#KT-36257
This commit is contained in:
@@ -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"
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user