WhenWithOnlyElse: don't remove when subject variable if needed

#KT-30975 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-04-18 19:45:33 +09:00
committed by Dmitry Gridin
parent 7f1d30058a
commit e955dcfc14
44 changed files with 636 additions and 12 deletions
@@ -0,0 +1,11 @@
fun test() {
<caret>val a = create()
use(a, a)
foo()
}
fun create(): String = ""
fun use(s: String, t: String) {}
fun foo() {}