32bb64a225
reporting UNSAFE_CALL).
18 lines
258 B
Kotlin
Vendored
18 lines
258 B
Kotlin
Vendored
class A {
|
|
operator fun plusAssign(s: String) {}
|
|
}
|
|
|
|
fun test() {
|
|
var a: A? = A()
|
|
a <!UNSAFE_OPERATOR_CALL!>+=<!> ""
|
|
}
|
|
|
|
class B {
|
|
operator fun plus(other: B) = this
|
|
}
|
|
|
|
fun test2() {
|
|
var b: B? = B()
|
|
b <!UNSAFE_OPERATOR_CALL!>+=<!> B()
|
|
}
|