ConstantConditionIfInspection.replaceWithBranch shouldn't remove subjectVariable with side effects
Relates to #KT-30975
This commit is contained in:
+1
@@ -1,3 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
when<caret> (val a = 42) {
|
||||
else -> {
|
||||
|
||||
Reference in New Issue
Block a user