mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
19 lines
286 B
Kotlin
Vendored
19 lines
286 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
class C {
|
|
val c: C = C()
|
|
}
|
|
|
|
operator fun C.plus(a: Any): C = this
|
|
operator fun C.plusAssign(a: Any) {}
|
|
|
|
class C1 {
|
|
var c: C = C()
|
|
}
|
|
|
|
fun test() {
|
|
val c = C()
|
|
c.c += ""
|
|
var c1 = C1()
|
|
c1.c <!ASSIGN_OPERATOR_AMBIGUITY!>+=<!> ""
|
|
} |