Files
kotlin-fork/idea/testData/refactoring/inline/inlineVariableOrProperty/property/KT17489.kt
T
2017-05-26 16:37:35 +03:00

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
}