KT-59325 [SLC] Fix generation of fields from companion objects
This commit is contained in:
committed by
Space Team
parent
190d49a1e0
commit
9f763deea1
+5
-5
@@ -2,16 +2,16 @@ public abstract interface TraitClassObjectField /* TraitClassObjectField*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final TraitClassObjectField.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String x = "" /* initializer type: java.lang.String */ /* constant value */;
|
||||
|
||||
public static final class Companion /* TraitClassObjectField.Companion*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.lang.String x = "" /* initializer type: java.lang.String */ /* constant value */;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
private static final java.lang.String y;
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public static final java.lang.String x = "" /* initializer type: java.lang.String */ /* constant value */;
|
||||
|
||||
private Companion();// .ctor()
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
interface TraitClassObjectField {
|
||||
companion object {
|
||||
const val x: String? = ""
|
||||
const val x: String = ""
|
||||
private val y: String? = { "" }()
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,4 @@
|
||||
public final class C /* C*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String c1;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String c;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private static java.lang.String x = "" /* initializer type: java.lang.String */;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user