Move: Optimize imports after applying "Move declaration to separate file" intention

#KT-10174 Fixed
This commit is contained in:
Alexey Sedunov
2016-04-25 15:02:30 +03:00
parent 676000cdf7
commit a00c524074
11 changed files with 48 additions and 3 deletions
@@ -0,0 +1,4 @@
package baz
class Baz {
}
@@ -0,0 +1,7 @@
package foo.bar
import baz.Baz
class Foo {
val b = Baz()
}
@@ -0,0 +1,3 @@
package foo.bar
class Bar
@@ -0,0 +1,4 @@
package baz
class Baz {
}
@@ -0,0 +1,9 @@
package foo.bar
import baz.Baz
class <caret>Foo {
val b = Baz()
}
class Bar
@@ -0,0 +1,5 @@
{
"mainFile": "test.kt",
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.moveDeclarations.MoveDeclarationToSeparateFileIntention",
"isApplicable": "true"
}