DeprecatedSymbolUsageFix: fixed nested calls with implicit receivers in the pattern

This commit is contained in:
Valentin Kipyatkov
2015-05-22 21:47:19 +03:00
parent 4407523b65
commit e767cdef83
4 changed files with 38 additions and 1 deletions
@@ -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())
}