Revert "K2/Java: add private enum constructor for MPP matching"
Review: https://jetbrains.team/p/kt/reviews/13368/timeline This reverts commit2cea2b9098. Motivation: KT-62961 was fixed independently by two different commits: -ac3d8ad3ac-2cea2b9098If possible, it's better not to introduce implicit declarations. That's why it was agreed to keepac3d8ad3acand revert2cea2b9098
This commit is contained in:
-2
@@ -11,8 +11,6 @@ public final enum class AnnotatedEnumEntry : R|kotlin/Enum<test/AnnotatedEnumEnt
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/AnnotatedEnumEntry>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/AnnotatedEnumEntry>|
|
||||
|
||||
private constructor(): R|test/AnnotatedEnumEntry|
|
||||
|
||||
public final annotation class Anno : R|kotlin/Annotation| {
|
||||
public constructor(value: R|kotlin/String|): R|test/AnnotatedEnumEntry.Anno|
|
||||
|
||||
|
||||
@@ -14,8 +14,6 @@ public abstract interface CustomAnnotation : R|kotlin/Any| {
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/CustomAnnotation.MyEnum>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/CustomAnnotation.MyEnum>|
|
||||
|
||||
private constructor(): R|test/CustomAnnotation.MyEnum|
|
||||
|
||||
}
|
||||
@R|test/CustomAnnotation.MyAnnotation|(value = R|test/CustomAnnotation.MyEnum.ONE|) public open class MyTest : R|kotlin/Any| {
|
||||
public constructor(): R|test/CustomAnnotation.MyTest|
|
||||
|
||||
-2
@@ -14,8 +14,6 @@ public open class EnumArgumentWithCustomToString : R|kotlin/Any| {
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/EnumArgumentWithCustomToString.E>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/EnumArgumentWithCustomToString.E>|
|
||||
|
||||
private constructor(): R|test/EnumArgumentWithCustomToString.E|
|
||||
|
||||
}
|
||||
public final annotation class EnumAnno : R|kotlin/Annotation| {
|
||||
public constructor(value: R|test/EnumArgumentWithCustomToString.E|): R|test/EnumArgumentWithCustomToString.EnumAnno|
|
||||
|
||||
-2
@@ -18,7 +18,5 @@ public open class NestedEnumArgument : R|kotlin/Any| {
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/NestedEnumArgument.E>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/NestedEnumArgument.E>|
|
||||
|
||||
private constructor(): R|test/NestedEnumArgument.E|
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
-2
@@ -13,8 +13,6 @@ public final annotation class Api : R|kotlin/Annotation| {
|
||||
public final static val entries: R|kotlin/enums/EnumEntries<test/Api.Status>|
|
||||
public get(): R|kotlin/enums/EnumEntries<test/Api.Status>|
|
||||
|
||||
private constructor(): R|test/Api.Status|
|
||||
|
||||
}
|
||||
}
|
||||
@R|test/Api|(status = R|test/Api.Status.Ok|) public open class NestedEnumInAnnotation : R|kotlin/Any| {
|
||||
|
||||
Reference in New Issue
Block a user