Files
kotlin-fork/idea/testData/quickfix/deprecatedSymbolUsage/infixCall.kt.after
T
Yan Zhulanow 6752df189d Make infix modifier diagnostic message more informative (KT-12589)
(cherry picked from commit 2744309)
2016-06-24 15:10:19 +03:00

14 lines
328 B
Plaintext
Vendored

// "Replace with 'newFun(p, this)'" "true"
// ERROR: infix modifier is inapplicable on this function: must be a member of an extension 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>newFun(1, "")
}