[FIR] Resolve rhs of += in dependent context

This commit is contained in:
Dmitriy Novozhilov
2020-07-06 12:51:47 +03:00
parent 943b59b5d8
commit 29849b1330
15 changed files with 303 additions and 53 deletions
@@ -5,5 +5,5 @@ fun <T> f(): R<T> = R<T>()
operator fun Int.plusAssign(y: R<Int>) {}
fun box() {
<!INAPPLICABLE_CANDIDATE!>1 += f()<!>
1 += f()
}
@@ -29,7 +29,7 @@ class Test()
fun test()
{
val control = Control()
control.MouseMoved += { <!UNRESOLVED_REFERENCE!>it<!>.<!UNRESOLVED_REFERENCE!>X<!> } // here
control.MouseMoved += { it.X } // here
control.MouseMoved.plusAssign( { it.X } ) // ok
}
}