Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/operatorCall2.kt
T

15 lines
199 B
Kotlin
Vendored

// "Replace with 'newFun(p)'" "true"
interface I
@Deprecated("", ReplaceWith("newFun(p)"))
operator fun I.plus(p: Int) {
newFun(p)
}
fun I.newFun(p: Int){}
fun foo(i: I) {
i <caret>+ 1
}