Pull Up/Extract Super: Support properties declared in the primary constructor
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class A {
|
||||
|
||||
public final int n;
|
||||
@NotNull
|
||||
public final String s;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
abstract class <caret>B(
|
||||
// INFO: {"checked": "true"}
|
||||
val n: Int,
|
||||
// INFO: {"checked": "true"}
|
||||
val s: String,
|
||||
val b: Boolean
|
||||
): A()
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
abstract class B(
|
||||
// INFO: {"checked": "true"}
|
||||
// INFO: {"checked": "true"}
|
||||
val b: Boolean
|
||||
): A()
|
||||
Reference in New Issue
Block a user