[FIR] Fix for CanBeReplacedWithOperatorAssignment Checker

This commit is contained in:
vldf
2020-08-03 14:39:07 +03:00
committed by Mikhail Glukhikh
parent 6f3df6faf4
commit 65ebd02a39
4 changed files with 21 additions and 0 deletions
@@ -0,0 +1,4 @@
fun foo(something: Boolean) {
var res = false
res = res and something
}
@@ -0,0 +1,5 @@
FILE: logicOperators.kt
public final fun foo(something: R|kotlin/Boolean|): R|kotlin/Unit| {
lvar res: R|kotlin/Boolean| = Boolean(false)
R|<local>/res| = R|<local>/res|.R|kotlin/Boolean.and|(R|<local>/something|)
}