Move: Optimize imports after applying "Move declaration to separate file" intention
#KT-10174 Fixed
This commit is contained in:
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
package baz
|
||||
|
||||
class Baz {
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package foo.bar
|
||||
|
||||
import baz.Baz
|
||||
|
||||
class Foo {
|
||||
val b = Baz()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
package foo.bar
|
||||
|
||||
class Bar
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
package baz
|
||||
|
||||
class Baz {
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package foo.bar
|
||||
|
||||
import baz.Baz
|
||||
|
||||
class <caret>Foo {
|
||||
val b = Baz()
|
||||
}
|
||||
|
||||
class Bar
|
||||
idea/testData/multiFileIntentions/moveDeclarationToSeparateFile/optimizeImports/optimizeImports.test
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "test.kt",
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.refactoring.move.moveDeclarations.MoveDeclarationToSeparateFileIntention",
|
||||
"isApplicable": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user