Files
kotlin-fork/compiler/testData/diagnostics/tests/operatorsOverloading/plusAssignOnLocal.kt
T
2022-03-11 15:36:05 +03:00

14 lines
242 B
Kotlin
Vendored

// FIR_IDENTICAL
// !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()
c1 <!ASSIGN_OPERATOR_AMBIGUITY!>+=<!> ""
}