KT-7989 ReplaceWith replacement adds redundant type arguments for platform types

Highlighting of redundant type arguments made more strict about platform types

 #KT-7989 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-06-10 15:21:37 +03:00
parent 2203fb3231
commit 366a2be8a7
15 changed files with 181 additions and 58 deletions
@@ -0,0 +1,7 @@
import java.util.List;
class JavaClass {
static List<String> list() {
return null;
}
}
@@ -0,0 +1,10 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun <T> Collection<T>.oldFun() {}
fun <T> Collection<T>.newFun() {}
fun foo() {
JavaClass.list().<caret>newFun()
}
@@ -0,0 +1,7 @@
import java.util.List;
class JavaClass {
static List<String> list() {
return null;
}
}
@@ -0,0 +1,10 @@
// "Replace with 'newFun()'" "true"
@deprecated("", ReplaceWith("newFun()"))
fun <T> Collection<T>.oldFun() {}
fun <T> Collection<T>.newFun() {}
fun foo() {
JavaClass.list().<caret>oldFun()
}