Add inspection to move the variable declaration into when

#KT-29001 Fixed
This commit is contained in:
Dmitry Gridin
2019-02-14 13:25:27 +03:00
parent 7abe9333c8
commit 33954c7632
15 changed files with 220 additions and 0 deletions
@@ -0,0 +1,11 @@
// PROBLEM: none
fun foo() {
val a<caret> = 1
val b = 42
when (a) {
1 -> {
}
else -> {
}
}
}