JVM IR: generate field for private companion object in interface as synthetic
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
open class TestProtectedCompanionInClass {
|
||||
protected companion object
|
||||
@@ -15,4 +14,4 @@ class TestPrivateCompanionInClass {
|
||||
|
||||
interface TestPrivateCompanionInInterface {
|
||||
private companion object
|
||||
}
|
||||
}
|
||||
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
@kotlin.Metadata
|
||||
public final class TestInternalCompanionInClass$Companion {
|
||||
// source: 'companionObjectVisibility_after.kt'
|
||||
private method <init>(): void
|
||||
public synthetic method <init>(p0: kotlin.jvm.internal.DefaultConstructorMarker): void
|
||||
public final inner class TestInternalCompanionInClass$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class TestInternalCompanionInClass {
|
||||
// source: 'companionObjectVisibility_after.kt'
|
||||
public final static @org.jetbrains.annotations.NotNull field Companion: TestInternalCompanionInClass$Companion
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
public final inner class TestInternalCompanionInClass$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class TestPrivateCompanionInClass$Companion {
|
||||
// source: 'companionObjectVisibility_after.kt'
|
||||
private method <init>(): void
|
||||
public synthetic method <init>(p0: kotlin.jvm.internal.DefaultConstructorMarker): void
|
||||
private final inner class TestPrivateCompanionInClass$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class TestPrivateCompanionInClass {
|
||||
// source: 'companionObjectVisibility_after.kt'
|
||||
private final static @org.jetbrains.annotations.NotNull field Companion: TestPrivateCompanionInClass$Companion
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
private final inner class TestPrivateCompanionInClass$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class TestPrivateCompanionInInterface$Companion {
|
||||
// source: 'companionObjectVisibility_after.kt'
|
||||
synthetic final static field $$INSTANCE: TestPrivateCompanionInInterface$Companion
|
||||
static method <clinit>(): void
|
||||
private method <init>(): void
|
||||
public final inner class TestPrivateCompanionInInterface$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public interface TestPrivateCompanionInInterface {
|
||||
// source: 'companionObjectVisibility_after.kt'
|
||||
public synthetic final static field Companion: TestPrivateCompanionInInterface$Companion
|
||||
static method <clinit>(): void
|
||||
public final inner class TestPrivateCompanionInInterface$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class TestProtectedCompanionInClass$Companion {
|
||||
// source: 'companionObjectVisibility_after.kt'
|
||||
private method <init>(): void
|
||||
public synthetic method <init>(p0: kotlin.jvm.internal.DefaultConstructorMarker): void
|
||||
protected final inner class TestProtectedCompanionInClass$Companion
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public class TestProtectedCompanionInClass {
|
||||
// source: 'companionObjectVisibility_after.kt'
|
||||
protected final static @org.jetbrains.annotations.NotNull field Companion: TestProtectedCompanionInClass$Companion
|
||||
static method <clinit>(): void
|
||||
public method <init>(): void
|
||||
protected final inner class TestProtectedCompanionInClass$Companion
|
||||
}
|
||||
Reference in New Issue
Block a user