LightClassTest: test corner cases related to inherited visiblity

EA-99155
 #KT-16899 Fixed
This commit is contained in:
Pavel V. Talanov
2017-03-24 15:08:15 +03:00
parent 4b85fd9fbe
commit a81bac0b50
18 changed files with 184 additions and 45 deletions
@@ -1,9 +0,0 @@
public interface PrivateInTrait {
final class DefaultImpls {
private static java.lang.String getNn(PrivateInTrait $this) { /* compiled code */ }
private static void setNn(PrivateInTrait $this, java.lang.String value) { /* compiled code */ }
private static java.lang.String getN(PrivateInTrait $this) { /* compiled code */ }
}
}
@@ -1,10 +0,0 @@
// PrivateInTrait
interface PrivateInTrait {
private var nn: String
get() = ""
set(value) {}
private val n: String?
get() = ""
private fun bar(a: String, b: String?): String?
}
@@ -1,15 +0,0 @@
public interface TraitClassObjectField {
TraitClassObjectField.Companion Companion;
@org.jetbrains.annotations.Nullable
java.lang.String x = "";
static final class Companion {
@org.jetbrains.annotations.Nullable
public static final java.lang.String x = "";
private static final java.lang.String y = "";
private final java.lang.String getY() { /* compiled code */ }
private Companion() { /* compiled code */ }
}
}
@@ -1,8 +0,0 @@
// TraitClassObjectField
interface TraitClassObjectField {
companion object {
const val x: String? = ""
private val y: String? = ""
}
}