Rename: Support import aliases
#KT-4379 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class Foo
|
||||
@@ -0,0 +1,5 @@
|
||||
import foo.Foo as Baz
|
||||
|
||||
fun test() {
|
||||
val bar: Baz = Baz()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class Foo
|
||||
@@ -0,0 +1,5 @@
|
||||
import foo.Foo as /*rename*/Bar
|
||||
|
||||
fun test() {
|
||||
val bar: Bar = Bar()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "Baz"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class Foo
|
||||
@@ -0,0 +1,5 @@
|
||||
import foo.Foo as Baz
|
||||
|
||||
fun test() {
|
||||
val bar: Baz = Baz()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package foo
|
||||
|
||||
class Foo
|
||||
@@ -0,0 +1,5 @@
|
||||
import foo.Foo as Bar
|
||||
|
||||
fun test() {
|
||||
val bar: /*rename*/Bar = Bar()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"type": "AUTO_DETECT",
|
||||
"mainFile": "test.kt",
|
||||
"newName": "Baz"
|
||||
}
|
||||
Reference in New Issue
Block a user