MoveVariableDeclarationIntoWhenInspection should move caret to subject expression

#KT-31954 Fixed
This commit is contained in:
Dmitry Gridin
2019-06-13 19:19:37 +07:00
parent a9057e914b
commit c155bf680f
6 changed files with 11 additions and 6 deletions
@@ -1,7 +1,7 @@
fun test() = 42
fun foo() {
val b = when (val a = test()) {
val b = when (val <caret>a = test()) {
1 -> a
else -> 24
}