diff --git a/idea/src/org/jetbrains/kotlin/idea/intentions/ConvertToBlockBodyIntention.kt b/idea/src/org/jetbrains/kotlin/idea/intentions/ConvertToBlockBodyIntention.kt index f7471303643..0ef3bd6526f 100644 --- a/idea/src/org/jetbrains/kotlin/idea/intentions/ConvertToBlockBodyIntention.kt +++ b/idea/src/org/jetbrains/kotlin/idea/intentions/ConvertToBlockBodyIntention.kt @@ -58,10 +58,20 @@ class ConvertToBlockBodyIntention : SelfTargetingIntention + @ann + @ann2 + 1 \ No newline at end of file diff --git a/idea/testData/intentions/convertToBlockBody/annotatedExpr2.kt.after b/idea/testData/intentions/convertToBlockBody/annotatedExpr2.kt.after new file mode 100644 index 00000000000..0d85b74fdd7 --- /dev/null +++ b/idea/testData/intentions/convertToBlockBody/annotatedExpr2.kt.after @@ -0,0 +1,13 @@ +@Target(AnnotationTarget.EXPRESSION) +@Retention(AnnotationRetention.SOURCE) +annotation class ann + +@Target(AnnotationTarget.EXPRESSION) +@Retention(AnnotationRetention.SOURCE) +annotation class ann2 + +fun test(): Int { + @ann + @ann2 + return 1 +} \ No newline at end of file diff --git a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java index 41ef4523197..45891da9f04 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java +++ b/idea/tests/org/jetbrains/kotlin/idea/intentions/IntentionTestGenerated.java @@ -6887,6 +6887,11 @@ public class IntentionTestGenerated extends AbstractIntentionTest { runTest("idea/testData/intentions/convertToBlockBody/annotatedExpr.kt"); } + @TestMetadata("annotatedExpr2.kt") + public void testAnnotatedExpr2() throws Exception { + runTest("idea/testData/intentions/convertToBlockBody/annotatedExpr2.kt"); + } + @TestMetadata("explicitlyNonUnitFun.kt") public void testExplicitlyNonUnitFun() throws Exception { runTest("idea/testData/intentions/convertToBlockBody/explicitlyNonUnitFun.kt");