Files
Anna Kozlova f7fd73abe1 [kotlin] k2 deprecation fix: don't insert comments from origin function body
^KTIJ-31410 fixed

GitOrigin-RevId: 56342b8657bdbef21b64e4089a254a6f162e3fee
2024-09-26 16:15:34 +00:00

18 lines
418 B
Kotlin

// "Replace with 'newFun()'" "true"
@Deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int) {
/** some comments */
newFun()
}
fun newFun(){}
fun foo() {
<caret>oldFun(bar())
}
fun bar(): Int = 0
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.replaceWith.DeprecatedSymbolUsageFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.replaceWith.DeprecatedSymbolUsageFix