Move: Fix callable reference processing when moving to another package
#KT-14197 Fixed
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
package a
|
||||
|
||||
fun f2() = 2
|
||||
+14
@@ -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
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package b
|
||||
|
||||
fun f3() = 3
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package c
|
||||
|
||||
fun f4() = 4
|
||||
+13
@@ -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
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package a
|
||||
|
||||
fun f2() = 2
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package b
|
||||
|
||||
fun f3() = 3
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package c
|
||||
|
||||
fun f4() = 4
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "a/test.kt",
|
||||
"type": "MOVE_FILES",
|
||||
"targetPackage": "b"
|
||||
}
|
||||
Reference in New Issue
Block a user