Move: Fix callable reference processing when moving to another package

#KT-14197 Fixed
This commit is contained in:
Alexey Sedunov
2016-11-24 15:22:22 +03:00
parent 0e9b024720
commit 61210d6ba2
13 changed files with 73 additions and 10 deletions
@@ -0,0 +1,3 @@
package a
fun f2() = 2
@@ -0,0 +1,14 @@
package b
import a.f2
import b.f3
import c.f4
fun test() {
val ref1 = ::f1
val ref2 = ::f2
val ref3 = ::f3
val ref4 = ::f4
}
fun f1() = 1
@@ -0,0 +1,3 @@
package b
fun f3() = 3
@@ -0,0 +1,3 @@
package c
fun f4() = 4
@@ -0,0 +1,13 @@
package a
import b.f3
import c.f4
fun test() {
val ref1 = ::f1
val ref2 = ::f2
val ref3 = ::f3
val ref4 = ::f4
}
fun f1() = 1
@@ -0,0 +1,3 @@
package a
fun f2() = 2
@@ -0,0 +1,3 @@
package b
fun f3() = 3
@@ -0,0 +1,3 @@
package c
fun f4() = 4
@@ -0,0 +1,5 @@
{
"mainFile": "a/test.kt",
"type": "MOVE_FILES",
"targetPackage": "b"
}