LightClassTest: test corner cases related to inherited visiblity
EA-99155 #KT-16899 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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 */ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// PrivateInTrait
|
||||
|
||||
interface PrivateInTrait {
|
||||
private var nn: String
|
||||
get() = ""
|
||||
set(value) {}
|
||||
private val n: String?
|
||||
get() = ""
|
||||
private fun bar(a: String, b: String?): String?
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
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 */ }
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// TraitClassObjectField
|
||||
|
||||
interface TraitClassObjectField {
|
||||
companion object {
|
||||
const val x: String? = ""
|
||||
private val y: String? = ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user