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