Merge pull request #2467 from t-kameyama/KT-14756

KT-14756 Move statement down breaks code in argument list
This commit is contained in:
Natalia Selezneva
2019-09-30 13:19:07 +03:00
committed by GitHub
14 changed files with 124 additions and 2 deletions
@@ -0,0 +1,6 @@
// MOVE: down
val x = listOf(
1,
<caret>2, 3,
4
)
@@ -0,0 +1,6 @@
// MOVE: down
val x = listOf(
1,
4,
<caret>2, 3
)
@@ -0,0 +1,6 @@
// MOVE: up
val x = listOf(
1,
4,
<caret>2, 3
)
@@ -0,0 +1,6 @@
// MOVE: up
val x = listOf(
1,
<caret>2, 3,
4
)
@@ -0,0 +1,6 @@
// MOVE: down
class A(
a: Int,
<caret>b: Int, c: Int,
d: Int
)
@@ -0,0 +1,6 @@
// MOVE: down
class A(
a: Int,
d: Int,
<caret>b: Int, c: Int
)
@@ -0,0 +1,6 @@
// MOVE: up
class A(
a: Int,
d: Int,
<caret>b: Int, c: Int
)
@@ -0,0 +1,6 @@
// MOVE: up
class A(
a: Int,
<caret>b: Int, c: Int,
d: Int
)
@@ -0,0 +1,7 @@
// MOVE: down
fun test(
a: Int,
<caret>b: Int, c: Int,
d: Int
) {
}
@@ -0,0 +1,7 @@
// MOVE: down
fun test(
a: Int,
d: Int,
<caret>b: Int, c: Int
) {
}
@@ -0,0 +1,7 @@
// MOVE: up
fun test(
a: Int,
d: Int,
<caret>b: Int, c: Int
) {
}
@@ -0,0 +1,7 @@
// MOVE: up
fun test(
a: Int,
<caret>b: Int, c: Int,
d: Int
) {
}