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,12 @@
// "Replace with 'newFun(*elements)'" "true"
@deprecated("", ReplaceWith("newFun(*elements)"))
fun oldFun(vararg elements: java.io.File?) {
newFun(*elements)
}
fun newFun(vararg elements: java.io.File?){}
fun foo() {
<caret>oldFun()
}
@@ -0,0 +1,12 @@
// "Replace with 'newFun(*elements)'" "true"
@deprecated("", ReplaceWith("newFun(*elements)"))
fun oldFun(vararg elements: java.io.File?) {
newFun(*elements)
}
fun newFun(vararg elements: java.io.File?){}
fun foo() {
<caret>newFun()
}