Pull Up/Extract Super: Support members declared in the companion object of the original class
This commit is contained in:
@@ -3,6 +3,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
abstract class A {
|
||||
|
||||
public final int x;
|
||||
public static final int _x;
|
||||
|
||||
public abstract boolean foo(int n);
|
||||
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
abstract class <caret>B: A() {
|
||||
companion object {
|
||||
// INFO: {"checked": "true"}
|
||||
val _x = 1
|
||||
}
|
||||
|
||||
// INFO: {"checked": "true"}
|
||||
val x = 1
|
||||
// INFO: {"checked": "true"}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
abstract class B: A() {
|
||||
|
||||
// INFO: {"checked": "true"}
|
||||
val y: Int get() = 2
|
||||
// INFO: {"checked": "true"}
|
||||
|
||||
Reference in New Issue
Block a user