Rename: Conflict detection for type parameters

#KT-13254 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-08 16:48:38 +03:00
parent 562488b348
commit a5da9e81a0
13 changed files with 120 additions and 3 deletions
@@ -0,0 +1 @@
class A</*rename*/U, V>
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "V",
"hint": "Type parameter 'V' is already declared in class 'A'"
}
@@ -0,0 +1,3 @@
class A<T> {
inner class B</*rename*/U, V>
}
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "T",
"hint": "Type parameter 'T' is already declared in class 'A'"
}
@@ -0,0 +1,3 @@
fun </*rename*/U, V> foo() {
}
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "V",
"hint": "Type parameter 'V' is already declared in function 'foo'"
}
@@ -0,0 +1,5 @@
class A<T> {
fun </*rename*/U, V> foo() {
}
}
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test.kt",
"newName": "T",
"hint": "Type parameter 'T' is already declared in class 'A'"
}