Copy: Fix import insertion on declaration copying
#KT-19909 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package bar
|
||||
|
||||
fun Any.bar() {}
|
||||
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
import bar.bar
|
||||
|
||||
class Foo {
|
||||
init {
|
||||
42.bar()
|
||||
}
|
||||
}
|
||||
|
||||
class Baz {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package foo
|
||||
|
||||
import bar.bar
|
||||
|
||||
class Foo2 {
|
||||
init {
|
||||
42.bar()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package bar
|
||||
|
||||
fun Any.bar() {}
|
||||
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
import bar.bar
|
||||
|
||||
class <caret>Foo {
|
||||
init {
|
||||
42.bar()
|
||||
}
|
||||
}
|
||||
|
||||
class Baz {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "foo/Foo.kt",
|
||||
"targetPackage": "foo",
|
||||
"newName": "Foo2"
|
||||
}
|
||||
Reference in New Issue
Block a user