Add braces: don't insert extra line break and move the following comment

#KT-36194 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-01-28 18:37:11 +09:00
committed by Yan Zhulanow
parent 905d0c1016
commit 777995a3a0
6 changed files with 69 additions and 1 deletions
@@ -764,6 +764,16 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
runTest("idea/testData/intentions/addBraces/forWithComment.kt");
}
@TestMetadata("hasCommentOnNextLine.kt")
public void testHasCommentOnNextLine() throws Exception {
runTest("idea/testData/intentions/addBraces/hasCommentOnNextLine.kt");
}
@TestMetadata("hasCommentOnNextLine2.kt")
public void testHasCommentOnNextLine2() throws Exception {
runTest("idea/testData/intentions/addBraces/hasCommentOnNextLine2.kt");
}
@TestMetadata("ifElseWithComment.kt")
public void testIfElseWithComment() throws Exception {
runTest("idea/testData/intentions/addBraces/ifElseWithComment.kt");