Improve: add more cases for MoveVariableDeclarationIntoWhen
#KT-30499 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
fun test() = true
|
||||
|
||||
fun foo() {
|
||||
val a<caret> = test()
|
||||
val b = !when (a) {
|
||||
true -> true
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user