Fix exponential pseudocode size on incorrect prefix increments and decrements

#KT-44153 Fixed
This commit is contained in:
Dmitriy Novozhilov
2021-03-15 18:34:28 +03:00
parent 6c5557dae3
commit cef859fced
10 changed files with 161 additions and 20 deletions
@@ -1,9 +1,11 @@
// FIR_IDENTICAL
public fun foo() {
var i: Any = 1
if (i is Int) {
while (i != 10) {
<!UNUSED_CHANGED_VALUE!>i<!UNRESOLVED_REFERENCE!>++<!><!> // Here smart cast should not be performed due to a successor
i<!UNRESOLVED_REFERENCE!>++<!> // Here smart cast should not be performed due to a successor
i = ""
}
}
}
}