Files
kotlin/compiler/testData/diagnostics/tests/operatorsOverloading/plusAssignOnLocal.kt
2015-02-27 19:32:58 +03:00

13 lines
207 B
Kotlin

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