Rename: Do not rename ambiguous references in import directives
#KT-6363 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
package lib
|
||||
|
||||
fun bar(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun foo(n: Int, s: String) {
|
||||
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
package usage;
|
||||
|
||||
import lib.LibKt;
|
||||
|
||||
import static lib.LibKt.foo;
|
||||
|
||||
public class JUsage {
|
||||
void test() {
|
||||
LibKt.bar(1);
|
||||
foo(1, "2");
|
||||
}
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package usage
|
||||
|
||||
import lib.foo
|
||||
import lib.bar
|
||||
|
||||
fun test() {
|
||||
bar(1)
|
||||
foo(1, "2")
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "lib/lib.kt",
|
||||
"newName": "bar",
|
||||
"withRuntime": "true",
|
||||
"overloadRenamer.onlyPrimaryElement": "true"
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package lib
|
||||
|
||||
fun /*rename*/foo(n: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun foo(n: Int, s: String) {
|
||||
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package usage;
|
||||
|
||||
import static lib.LibKt.foo;
|
||||
|
||||
public class JUsage {
|
||||
void test() {
|
||||
foo(1);
|
||||
foo(1, "2");
|
||||
}
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package usage
|
||||
|
||||
import lib.foo
|
||||
|
||||
fun test() {
|
||||
foo(1)
|
||||
foo(1, "2")
|
||||
}
|
||||
Reference in New Issue
Block a user