Rename: Disable Java member rename by reference to import alias
#KT-18076 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import Foo as Baz
|
||||
|
||||
fun test() {
|
||||
val bar: Baz = Baz()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import Foo as Bar
|
||||
|
||||
fun test() {
|
||||
val bar: /*rename*/Bar = Bar()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "AUTO_DETECT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "Baz"
|
||||
}
|
||||
Reference in New Issue
Block a user