Rename: Implement Rename conflict analysis for classes. Qualify class references to resove rename conflicts when possible

#KT-8611 Fixed
 #KT-8562 Fixed
(cherry picked from commit 8989ccc)
This commit is contained in:
Alexey Sedunov
2016-06-14 15:16:59 +03:00
parent 77b0bb9849
commit c9f659e89b
32 changed files with 301 additions and 7 deletions
@@ -0,0 +1,3 @@
package lib
class LibType
@@ -0,0 +1,8 @@
package ref
import lib.LibType
class LibType {}
class Referrer1 { fun method(p1a: ref.LibType, p1b: String) {} }
class Referrer2 { fun method(p2a: ref.LibType, p2b: LibType) {} }
@@ -0,0 +1,3 @@
package lib
class LibType
@@ -0,0 +1,8 @@
package ref
import lib.LibType
class /*rename*/CustomType {}
class Referrer1 { fun method(p1a: CustomType, p1b: String) {} }
class Referrer2 { fun method(p2a: CustomType, p2b: LibType) {} }
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "test/ref.kt",
"newName": "LibType",
"withRuntime": "true"
}