Move statement up/down fails for multiline declarations with lambdas (KT-21013)

#KT-21013 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-03-02 16:59:40 +09:00
committed by Nikolay Krasko
parent f41165c566
commit 3f96e1dabc
6 changed files with 51 additions and 5 deletions
@@ -0,0 +1,6 @@
// MOVE: up
fun test() {
(0..10)
.map { it }
<caret>println()
}
@@ -0,0 +1,6 @@
// MOVE: up
fun test() {
<caret>println()
(0..10)
.map { it }
}
@@ -0,0 +1,8 @@
// MOVE: up
fun test() {
(0..10)
.map {
it
}
<caret>println()
}
@@ -0,0 +1,8 @@
// MOVE: up
fun test() {
(0..10)
.map {
it
<caret>println()
}
}