KT-7895 Auto replace for deprecated (ReplaceWith) loses generic type

#KT-7895 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-06-03 21:31:15 +03:00
parent f14615315d
commit a26c62ab0f
22 changed files with 386 additions and 54 deletions
@@ -0,0 +1,15 @@
// "Replace with 'newFun()'" "true"
package ppp
fun bar(): Int = 0
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int = ppp.bar()) {
newFun()
}
fun newFun(){}
fun foo() {
<caret>oldFun()
}
@@ -0,0 +1,16 @@
// "Replace with 'newFun()'" "true"
package ppp
fun bar(): Int = 0
@deprecated("", ReplaceWith("newFun()"))
fun oldFun(p: Int = ppp.bar()) {
newFun()
}
fun newFun(){}
fun foo() {
bar()
<caret>newFun()
}