940ce27925
#KT-17489 Fixed
10 lines
179 B
Kotlin
Vendored
10 lines
179 B
Kotlin
Vendored
class Predicate(val x: Int) {
|
|
operator fun plusAssign(y: Int) {}
|
|
|
|
operator fun unaryMinus() = Predicate(-x)
|
|
}
|
|
|
|
fun test(p: Predicate) {
|
|
val <caret>x = -p
|
|
x += 42
|
|
} |