Rename: Conflict detection for type parameters
#KT-13254 Fixed
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
class A</*rename*/U, V>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "V",
|
||||
"hint": "Type parameter 'V' is already declared in class 'A'"
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
class A<T> {
|
||||
inner class B</*rename*/U, V>
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "T",
|
||||
"hint": "Type parameter 'T' is already declared in class 'A'"
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun </*rename*/U, V> foo() {
|
||||
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "V",
|
||||
"hint": "Type parameter 'V' is already declared in function 'foo'"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class A<T> {
|
||||
fun </*rename*/U, V> foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "T",
|
||||
"hint": "Type parameter 'T' is already declared in class 'A'"
|
||||
}
|
||||
Reference in New Issue
Block a user