[FIR] Mark more calls origin as OPERATOR

This commit is contained in:
Andrey Zinovyev
2021-05-18 18:19:46 +03:00
committed by TeamCityServer
parent 0a45b3a50b
commit 07a8ae7e71
18 changed files with 51 additions and 54 deletions
@@ -7,7 +7,9 @@ class A {
fun main() {
val a = A()
a[1]++
a[1] += 3
a[1] = a[1] + 3
<!OPERATOR_MODIFIER_REQUIRED!>a[1]<!>++
//fir prefers plusAssign call if neither get+set nor plusAssign resolverd
//hence UNRESOLVED_REFERENCE here
a[1] <!UNRESOLVED_REFERENCE!>+=<!> 3
<!OPERATOR_MODIFIER_REQUIRED!>a[1]<!> = a[1] + 3
}