Files
kotlin/compiler/testData/diagnostics/tests/operatorsOverloading/plusAssignOnLocal.kt
2015-09-25 19:20:20 +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()
c1 <!ASSIGN_OPERATOR_AMBIGUITY!>+=<!> ""
}