ConstantConditionIfInspection.replaceWithBranch shouldn't remove subjectVariable with side effects
Relates to #KT-30975
This commit is contained in:
Vendored
+5
-1
@@ -1,5 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
<caret>use(create())
|
||||
run {
|
||||
val a = create()
|
||||
use(a)
|
||||
}
|
||||
}
|
||||
|
||||
fun create(): String = ""
|
||||
|
||||
Reference in New Issue
Block a user