DeprecatedSymbolUsageFix: fixed nested calls with implicit receivers in the pattern
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// "Replace with 'newFun1(newFun2())'" "true"
|
||||
|
||||
class X {
|
||||
@deprecated("", ReplaceWith("newFun1(newFun2())"))
|
||||
fun oldFun() {
|
||||
newFun1(newFun2())
|
||||
}
|
||||
|
||||
fun newFun1(p: Int): Int = p
|
||||
fun newFun2(): Int = 1
|
||||
}
|
||||
|
||||
fun foo(x: X) {
|
||||
x.<caret>oldFun()
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// "Replace with 'newFun1(newFun2())'" "true"
|
||||
|
||||
class X {
|
||||
@deprecated("", ReplaceWith("newFun1(newFun2())"))
|
||||
fun oldFun() {
|
||||
newFun1(newFun2())
|
||||
}
|
||||
|
||||
fun newFun1(p: Int): Int = p
|
||||
fun newFun2(): Int = 1
|
||||
}
|
||||
|
||||
fun foo(x: X) {
|
||||
x.<caret>newFun1(x.newFun2())
|
||||
}
|
||||
Reference in New Issue
Block a user