WhenWithOnlyElse: don't remove when subject variable if needed
#KT-30975 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
7f1d30058a
commit
e955dcfc14
+7
@@ -0,0 +1,7 @@
|
||||
fun test() {
|
||||
when (val a = 42) {
|
||||
else -> use("")
|
||||
}<caret>
|
||||
}
|
||||
|
||||
fun use(s: String) {}
|
||||
Reference in New Issue
Block a user