Move statement: move expression over comments (KT-23461)
#KT-23461 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
20c45a8382
commit
ed28a06285
@@ -0,0 +1,7 @@
|
||||
// MOVE: up
|
||||
fun wrap() {
|
||||
// comment1
|
||||
// comment2
|
||||
val b = 42
|
||||
<caret>fun nested() {}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// MOVE: up
|
||||
fun wrap() {
|
||||
<caret>fun nested() {}
|
||||
// comment1
|
||||
// comment2
|
||||
val b = 42
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// MOVE: up
|
||||
fun wrap() {
|
||||
/*
|
||||
comment1
|
||||
comment2
|
||||
*/
|
||||
val b = 42
|
||||
<caret>fun nested() {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// MOVE: up
|
||||
fun wrap() {
|
||||
<caret>fun nested() {}
|
||||
/*
|
||||
comment1
|
||||
comment2
|
||||
*/
|
||||
val b = 42
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// MOVE: down
|
||||
fun wrap() {
|
||||
<caret>fun nested() {}
|
||||
// comment1
|
||||
// comment2
|
||||
val b = 42
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// MOVE: down
|
||||
fun wrap() {
|
||||
// comment1
|
||||
// comment2
|
||||
val b = 42
|
||||
<caret>fun nested() {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// MOVE: down
|
||||
fun wrap() {
|
||||
<caret>fun nested() {}
|
||||
/*
|
||||
comment1
|
||||
comment1
|
||||
*/
|
||||
val b = 42
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// MOVE: down
|
||||
fun wrap() {
|
||||
/*
|
||||
comment1
|
||||
comment1
|
||||
*/
|
||||
val b = 42
|
||||
<caret>fun nested() {}
|
||||
}
|
||||
Reference in New Issue
Block a user