Intentions: Move member of companion object to corresponding class

#KT-9697 Fixed
This commit is contained in:
Alexey Sedunov
2016-02-03 14:31:55 +03:00
parent d13ac6b5a4
commit 5f037d372d
22 changed files with 310 additions and 3 deletions
@@ -0,0 +1,18 @@
package a
class A {
companion object {
fun foo() {
}
}
class B {
}
}
fun foo() {
A.B()
}
@@ -0,0 +1,9 @@
package b;
import a.A;
class J {
void foo() {
A.B b = new A.B();
}
}
@@ -0,0 +1,17 @@
package a
class A {
companion object {
fun foo() {
}
class <caret>B {
}
}
}
fun foo() {
A.Companion.B()
}
@@ -0,0 +1,9 @@
package b;
import a.A;
class J {
void foo() {
A.Companion.B b = new A.Companion.B();
}
}
@@ -0,0 +1,5 @@
{
"mainFile": "a/A.kt",
"intentionClass": "org.jetbrains.kotlin.idea.intentions.MoveMemberOutOfCompanionObjectIntention",
"withRuntime": "true"
}