Files
kotlin-fork/idea/testData/intentions/conventionNameCalls/replaceCallWithUnaryOperator/complexPlus.kt
T

12 lines
303 B
Kotlin
Vendored

fun <T> doSomething(a: T) {}
fun test() {
class Test {
operator fun unaryPlus(): Test = Test()
operator fun plus(a: Test): Test = Test()
operator fun unaryMinus(): Test = Test()
}
val test = Test()
doSomething((-((test + test).unaryPl<caret>us())).toString())
}