KT-34572 Convert to block body action improperly works with suppress annotations (#2969)

* Convert to block body: place @Suppress annotation before return expression

#KT-34572 Fixed

* Convert to block body: place annotations before return expression
This commit is contained in:
Toshiaki Kameyama
2020-08-20 17:15:00 +09:00
committed by GitHub
parent 9e0bb4ce8e
commit 8ce9b2d061
5 changed files with 46 additions and 5 deletions
@@ -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");