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

14 lines
285 B
Kotlin
Vendored

// "Replace with 'newFun(p, this)'" "true"
// ERROR: 'infix' modifier is inapplicable on this function
@Deprecated("", ReplaceWith("newFun(p, this)"))
infix fun String.oldFun(p: Int) {
newFun(p, this)
}
infix fun newFun(p: Int, s: String){}
fun foo() {
"" <caret>oldFun 1
}