Pull Up/Extract Super: Support properties declared in the primary constructor

This commit is contained in:
Alexey Sedunov
2016-09-20 15:12:13 +03:00
parent 3aedf0d79f
commit 982d4d4ead
38 changed files with 378 additions and 47 deletions
@@ -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()