Files
kotlin-fork/idea/testData/intentions/conventionNameCalls/replaceCallWithUnaryOperator/complexPlus.kt
T
2015-05-14 01:10:05 +03:00

12 lines
260 B
Kotlin

fun doSomething<T>(a: T) {}
fun test() {
class Test {
fun plus(): Test = Test()
fun plus(a: Test): Test = Test()
fun minus(): Test = Test()
}
val test = Test()
doSomething((-((test + test).pl<caret>us())).toString())
}