Inspection "MoveVariableDeclarationIntoWhen" should inline variable declaration

This commit is contained in:
Dmitry Gridin
2019-03-21 16:29:08 +07:00
parent f9119c001e
commit c84ff1d8b1
3 changed files with 38 additions and 10 deletions
@@ -1,7 +1,7 @@
fun foo() {
// comment
when (val a = 1) {
when (1) {
1 -> {
}
else -> {