DeprecatedSymbolUsageFix: keeping explicit type arguments in original form

This commit is contained in:
Valentin Kipyatkov
2015-06-03 21:54:52 +03:00
parent 9f1fbe20dc
commit 6751a1d440
4 changed files with 49 additions and 7 deletions
@@ -0,0 +1,12 @@
// "Replace with 'newFun<T>()'" "true"
@deprecated("", ReplaceWith("newFun<T>()"))
fun <T> oldFun() {
newFun<T>()
}
fun <T> newFun(){}
fun foo() {
<caret>oldFun<kotlin.Int>()
}
@@ -0,0 +1,12 @@
// "Replace with 'newFun<T>()'" "true"
@deprecated("", ReplaceWith("newFun<T>()"))
fun <T> oldFun() {
newFun<T>()
}
fun <T> newFun(){}
fun foo() {
<caret>newFun<kotlin.Int>()
}