[FIR] Resolve rhs of += in dependent context
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user