Lift assignment out: don't report when expression is used as expression

#KT-36357 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-02-05 17:50:39 +09:00
committed by Mikhail Glukhikh
parent 8baba38099
commit 6c93217539
5 changed files with 42 additions and 0 deletions
@@ -0,0 +1,7 @@
// PROBLEM: none
var a = 5
fun foo() = <caret>when {
true -> a = 6
else -> a = 8
}