FIR LC: revisit when to add fields to companion and/or containing class
This commit is contained in:
committed by
Ilya Kirillov
parent
89d1a6bc0f
commit
63fb00fa21
@@ -29,6 +29,10 @@ public static final class Companion /* A.Companion*/ {
|
||||
}
|
||||
|
||||
public abstract interface B /* B*/ {
|
||||
@kotlin.jvm.JvmField()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final java.util.Collection<?> a;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final B.Companion Companion;
|
||||
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
public final class C /* C*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public java.lang.String x;
|
||||
public static java.lang.String x;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static final C.Companion Companion;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static java.lang.String c1;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public static java.lang.String c;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
public static final void foo();// foo()
|
||||
|
||||
@@ -20,10 +26,6 @@ public final class C /* C*/ {
|
||||
}
|
||||
|
||||
public static final class Companion /* C.Companion*/ {
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private java.lang.String x;
|
||||
|
||||
@kotlin.jvm.JvmStatic()
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getC(I);// getC(I)
|
||||
|
||||
@@ -80,6 +80,12 @@ public final class Foo /* Foo*/ {
|
||||
|
||||
public java.lang.String internalVarPrivateSet;
|
||||
|
||||
public static final int f1;
|
||||
|
||||
public static final int prop3;
|
||||
|
||||
public static int prop7;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
protected final java.lang.String getProtectedLateinitVar();// getProtectedLateinitVar()
|
||||
|
||||
@@ -191,12 +197,6 @@ public final class Foo /* Foo*/ {
|
||||
}
|
||||
|
||||
public static final class Companion /* Foo.Companion*/ {
|
||||
private final int f1;
|
||||
|
||||
private final int prop3;
|
||||
|
||||
private int prop7;
|
||||
|
||||
private Companion();// .ctor()
|
||||
|
||||
public final int getF1();// getF1()
|
||||
|
||||
Reference in New Issue
Block a user