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
+8
@@ -0,0 +1,8 @@
|
||||
fun test() {
|
||||
<caret>val a = create()
|
||||
use(a, a)
|
||||
}
|
||||
|
||||
fun create(): String = ""
|
||||
|
||||
fun use(s: String, t: String) {}
|
||||
Reference in New Issue
Block a user