Improve: add more cases for MoveVariableDeclarationIntoWhen
#KT-30499 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
fun test() = true
|
||||
|
||||
fun foo(): Int {
|
||||
return when (test()) {
|
||||
true -> 42
|
||||
else -> null
|
||||
} ?: 55
|
||||
}
|
||||
Reference in New Issue
Block a user