FIR: Choose a resolved candidate for augmented assignment when both
assign and operator candidates are unsuccessful.
This commit is contained in:
committed by
teamcityserver
parent
32bb64a225
commit
d1531f9cdd
-17
@@ -1,17 +0,0 @@
|
||||
class A {
|
||||
operator fun plusAssign(s: String) {}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
var a: A? = A()
|
||||
a <!UNSAFE_OPERATOR_CALL!>+=<!> ""
|
||||
}
|
||||
|
||||
class B {
|
||||
operator fun plus(other: B) = this
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
var b: B? = B()
|
||||
b <!UNRESOLVED_REFERENCE!>+=<!> B()
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
class A {
|
||||
operator fun plusAssign(s: String) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user