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
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
<caret>run {
|
||||
val a = 42
|
||||
use(a, a)
|
||||
use(a, a)
|
||||
}
|
||||
val a = 33
|
||||
}
|
||||
|
||||
fun use(i: Int, j: Int) {}
|
||||
Reference in New Issue
Block a user