Rename: Fix rename of ambiguous import reference to class/function when some referenced declarations are not changed
#KT-6663 Fixed (cherry picked from commit 9ba8ecd)
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
package lib
|
||||
|
||||
class Foo2
|
||||
|
||||
fun Foo(p: Int): Foo2 = Foo2()
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package usage
|
||||
|
||||
import lib.Foo
|
||||
import lib.Foo2
|
||||
|
||||
fun test() {
|
||||
val v: Foo2 = Foo(1)
|
||||
}
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "lib/lib.kt",
|
||||
"newName": "Foo2",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package lib
|
||||
|
||||
class /*rename*/Foo
|
||||
|
||||
fun Foo(p: Int): Foo = Foo()
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package usage
|
||||
|
||||
import lib.Foo
|
||||
|
||||
fun test() {
|
||||
val v: Foo = Foo(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user