Move: Do not process imported references when moving entire file

#KT-17538 Fixed
This commit is contained in:
Alexey Sedunov
2017-04-21 21:18:35 +03:00
parent eab6c024c2
commit c690761715
10 changed files with 34 additions and 2 deletions
@@ -16,6 +16,6 @@ public fun test(a: A) {
a.bar()
a.foo()
B().foo().bar()
B().foo().bar()
library.B().foo().bar()
B().bar().foo()
}
@@ -0,0 +1,3 @@
package one
class ImportedWithAlias
@@ -0,0 +1,6 @@
package three
import one.ImportedWithAlias as WithAlias
val v1 = WithAlias()
val v2 = 2
@@ -0,0 +1,3 @@
package one
class ImportedWithAlias
@@ -0,0 +1,6 @@
package two
import one.ImportedWithAlias as WithAlias
val v1 = WithAlias()
val v2 = 2
@@ -0,0 +1,5 @@
{
"mainFile": "two/Source.kt",
"type": "MOVE_FILES",
"targetPackage": "three"
}