Move File/Change Package: Change package directive prior to processing of internal usages (otherwise some necessary imports are not added)

This commit is contained in:
Alexey Sedunov
2015-05-15 14:50:14 +03:00
parent 1a60995ea9
commit da6b8b75ea
13 changed files with 81 additions and 2 deletions
@@ -0,0 +1,5 @@
{
"mainFile": "source/foo.kt",
"type": "MOVE_FILES",
"targetPackage": "target"
}
@@ -0,0 +1,7 @@
package source
import target.C
fun C.foo() {
}
@@ -0,0 +1,9 @@
package target
import source.foo
class C
fun test(c: C) {
c.foo()
}
@@ -0,0 +1,5 @@
package source
fun C.foo() {
}
@@ -0,0 +1,7 @@
package source
class C
fun test(c: C) {
c.foo()
}