MoveVariableDeclarationIntoWhenInspection shouldn't report a multi-line variable

#KT-30457 Fixed
This commit is contained in:
Dmitry Gridin
2019-04-23 21:40:20 +07:00
parent d456ae58b6
commit 2ae30de980
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1,11 @@
// PROBLEM: none
fun foo(): Int {
val a<caret> = if (true) true
else false
return when (a) {
true -> 42
else -> null
} ?: 55
}