Move to top level: update import directives on the usage site when the declaration to be moved is not private
#KT-37213 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
b06a3ea5ac
commit
77f85d8b7c
@@ -0,0 +1,3 @@
|
||||
package a
|
||||
|
||||
fun foo() {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package b
|
||||
|
||||
import a.foo
|
||||
|
||||
fun main() {
|
||||
foo()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package a
|
||||
|
||||
object A {
|
||||
fun <caret>foo() {}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package b
|
||||
|
||||
import a.A
|
||||
|
||||
fun main() {
|
||||
A.foo()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "a/A.kt",
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.intentions.MoveMemberToTopLevelIntention",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user