diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/QuickFixTestGenerated.java b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/QuickFixTestGenerated.java index 8588e7dcc387..21b8f04de196 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/QuickFixTestGenerated.java +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/QuickFixTestGenerated.java @@ -252,11 +252,21 @@ public abstract class QuickFixTestGenerated extends AbstractQuickFixTest { runTest("testData/quickfix/addAnnotationTarget/hasAnnotationTarget1.kt"); } + @TestMetadata("hasAnnotationTarget11.kt") + public void testHasAnnotationTarget11() throws Exception { + runTest("testData/quickfix/addAnnotationTarget/hasAnnotationTarget11.kt"); + } + @TestMetadata("hasAnnotationTarget2.kt") public void testHasAnnotationTarget2() throws Exception { runTest("testData/quickfix/addAnnotationTarget/hasAnnotationTarget2.kt"); } + @TestMetadata("hasAnnotationTarget21.kt") + public void testHasAnnotationTarget21() throws Exception { + runTest("testData/quickfix/addAnnotationTarget/hasAnnotationTarget21.kt"); + } + @TestMetadata("noBackingField.kt") public void testNoBackingField() throws Exception { runTest("testData/quickfix/addAnnotationTarget/noBackingField.kt"); diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/basic1.kt b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/basic1.kt index 27e203178d5c..ccabe77870f6 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/basic1.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/basic1.kt @@ -3,5 +3,6 @@ annotation class Foo class Test { - fun foo(): @Foo Int = 1 + // TODO: [VD] temporary broken due to https://youtrack.jetbrains.com/issue/KT-45417 + fun foo(): @Foo Int = 1 } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/basic4.kt b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/basic4.kt index 736d7ccd91a1..90b8ebeef8ab 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/basic4.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/basic4.kt @@ -4,6 +4,7 @@ annotation class Foo @Foo class Test { + // TODO: [VD] temporary broken due to https://youtrack.jetbrains.com/issue/KT-45417 @Foo - fun foo(): @Foo Int = 1 + fun foo(): @Foo Int = 1 } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget1.kt b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget1.kt index fdbb47ae7b6f..bc9512d7490b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget1.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget1.kt @@ -4,5 +4,6 @@ annotation class Foo class Test { - fun foo(): @Foo Int = 1 + // TODO: [VD] temporary broken due to https://youtrack.jetbrains.com/issue/KT-45417 + fun foo(): @Foo Int = 1 } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget11.kt b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget11.kt new file mode 100644 index 000000000000..5b90514c904b --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget11.kt @@ -0,0 +1,8 @@ +// "Add annotation target" "true" + +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) +annotation class Foo + +class Test { + fun foo(): @Foo String = "" +} \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget11.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget11.kt.after new file mode 100644 index 000000000000..79ae9af8e060 --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget11.kt.after @@ -0,0 +1,8 @@ +// "Add annotation target" "true" + +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPE) +annotation class Foo + +class Test { + fun foo(): @Foo String = "" +} \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget2.kt b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget2.kt index 04196cb4cb86..1c3c90f4ecea 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget2.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget2.kt @@ -6,5 +6,6 @@ annotation class Foo @Foo class Test { @Foo - fun foo(): @Foo Int = 1 + // TODO: [VD] temporary broken due to https://youtrack.jetbrains.com/issue/KT-45417 + fun foo(): @Foo Int = 1 } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget21.kt b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget21.kt new file mode 100644 index 000000000000..0ab5fab921c2 --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget21.kt @@ -0,0 +1,10 @@ +// "Add annotation target" "true" + +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) +annotation class Foo + +@Foo +class Test { + @Foo + fun foo(): @Foo String = "" +} \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget21.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget21.kt.after new file mode 100644 index 000000000000..fd3434761102 --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/addAnnotationTarget/hasAnnotationTarget21.kt.after @@ -0,0 +1,10 @@ +// "Add annotation target" "true" + +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPE) +annotation class Foo + +@Foo +class Test { + @Foo + fun foo(): @Foo String = "" +} \ No newline at end of file