mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
13 lines
225 B
Kotlin
Vendored
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!>+=<!> ""
|
|
} |