Files
kotlin-fork/compiler/testData/diagnostics/tests/operatorsOverloading/plusAssignOnLocal.fir.kt
T
2020-03-27 16:46:59 +03:00

13 lines
225 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
class C
operator fun C.plus(a: Any): C = this
operator fun C.plusAssign(a: Any) {}
fun test() {
val c = C()
c += ""
var c1 = C()
<!ASSIGN_OPERATOR_AMBIGUITY!>c1 += ""<!>
}