KT-7895 Auto replace for deprecated (ReplaceWith) loses generic type
#KT-7895 Fixed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user