"Merge 'if's" intention: do not remove nested comments
#KT-33258 Fixed #KT-39552 Fixed
This commit is contained in:
committed by
igoriakovlev
parent
f6e70cfed8
commit
9ff7539ff0
+3
-1
@@ -1,6 +1,8 @@
|
||||
fun foo() {
|
||||
// comment 1
|
||||
<caret>if (/* comment 2 */ true && false /* comment 3 */) {
|
||||
/* comment 2 */
|
||||
/* comment 3 */
|
||||
<caret>if (true && false) {
|
||||
// comment 4
|
||||
foo()
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fun foo() {
|
||||
// comment1
|
||||
<caret>if (true) /* comment2 */ /* comment3 */ {
|
||||
// comment4
|
||||
// comment5
|
||||
if (false) {
|
||||
}
|
||||
// comment6
|
||||
// comment7
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fun foo() {
|
||||
// comment1
|
||||
/* comment2 */
|
||||
/* comment3 */
|
||||
// comment4
|
||||
// comment5
|
||||
// comment6
|
||||
// comment7
|
||||
<caret>if (true && false) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun foo() {
|
||||
// comment1
|
||||
<caret>if (true)
|
||||
// comment2
|
||||
// comment3
|
||||
if (false) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun foo() {
|
||||
// comment1
|
||||
// comment2
|
||||
// comment3
|
||||
<caret>if (true && false) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user