[FIR] Add desugaring of array assignments and resolve of it
#KT-37516 Fixed
This commit is contained in:
+3
-3
@@ -20,7 +20,7 @@ object MismatchingTypes {
|
||||
fun testMismatchingTypes() {
|
||||
<!INAPPLICABLE_CANDIDATE!>++MismatchingTypes[0]<!>
|
||||
<!INAPPLICABLE_CANDIDATE!>MismatchingTypes[0]++<!>
|
||||
MismatchingTypes[0] += 1
|
||||
<!UNRESOLVED_REFERENCE!>MismatchingTypes[0] += 1<!>
|
||||
}
|
||||
|
||||
object MismatchingArities1 {
|
||||
@@ -36,10 +36,10 @@ object MismatchingArities2 {
|
||||
fun testMismatchingArities() {
|
||||
<!INAPPLICABLE_CANDIDATE!>++MismatchingArities1[0]<!>
|
||||
<!INAPPLICABLE_CANDIDATE!>MismatchingArities1[0]++<!>
|
||||
MismatchingArities1[0] += 1
|
||||
<!UNRESOLVED_REFERENCE!>MismatchingArities1[0] += 1<!>
|
||||
|
||||
<!UNRESOLVED_REFERENCE!>++<!><!INAPPLICABLE_CANDIDATE!>MismatchingArities2[0]<!>
|
||||
<!INAPPLICABLE_CANDIDATE!>MismatchingArities2[0]<!><!UNRESOLVED_REFERENCE!>++<!>
|
||||
MismatchingArities2[0] += 1
|
||||
<!UNRESOLVED_REFERENCE!><!INAPPLICABLE_CANDIDATE!>MismatchingArities2[0]<!> += 1<!>
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -16,5 +16,5 @@ fun test() {
|
||||
val c = C()
|
||||
c[0] += ""
|
||||
var c1 = C1()
|
||||
c1[0] += ""
|
||||
<!AMBIGUITY!>c1[0] += ""<!>
|
||||
}
|
||||
Reference in New Issue
Block a user