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:
+3
@@ -0,0 +1,3 @@
|
||||
package lib
|
||||
|
||||
class LibType
|
||||
+8
@@ -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) {} }
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package lib
|
||||
|
||||
class LibType
|
||||
Vendored
+8
@@ -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) {} }
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/ref.kt",
|
||||
"newName": "LibType",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user