[FIR] Fix augmented array set call on smartcasted receiver

#KT-60917 Fixed
This commit is contained in:
Kirill Rakhman
2023-08-16 16:45:10 +02:00
committed by Space Team
parent 72957b9978
commit 640d1e3fc8
6 changed files with 20 additions and 8 deletions
@@ -4,7 +4,7 @@
fun test1() {
var x: MutableList<Int>? = mutableListOf(1)
x!!
x[if (true) { x = null; 0 } else 0] <!UNRESOLVED_REFERENCE!>+=<!> <!UNSAFE_CALL!>x[0]<!>
x[if (true) { x = null; 0 } else 0] += <!UNSAFE_CALL!>x[0]<!>
<!UNSAFE_CALL!>x[0]<!>.inv()
}