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