[FIR] Track inc and dec operator calls in preliminary loop visitor, ^KT-44879 Fixed

This commit is contained in:
Ivan Kochurkin
2022-03-30 19:21:47 +03:00
committed by teamcity
parent fc77d0d26b
commit e9b9322672
3 changed files with 5 additions and 2 deletions
@@ -2,7 +2,7 @@ public fun foo() {
var i: Any = 1
if (i is Int) {
while (i != 10) {
i<!UNRESOLVED_REFERENCE!>++<!>
i++
}
}
}
@@ -2,7 +2,7 @@ public fun foo() {
var i: Int? = 1
if (i != null) {
while (i != 10) {
i<!UNSAFE_CALL!>++<!>
i++
}
}
}