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:
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import java.util.List;
|
||||
|
||||
class JavaClass {
|
||||
static List<String> list() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+10
@@ -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()
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import java.util.List;
|
||||
|
||||
class JavaClass {
|
||||
static List<String> list() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+10
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user