mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
Drop enum class object hack
Place valueOf() and values() into the static scope of the corresponding enum class #KT-5580 Fixed #KT-2410 Fixed
This commit is contained in:
@@ -5,12 +5,6 @@ internal final enum class Test : kotlin.Enum<test.Test> {
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
|
||||
public class object <class-object-for-Test> {
|
||||
/*primary*/ private constructor <class-object-for-Test>()
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.Test
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.Test>
|
||||
}
|
||||
|
||||
public enum entry A : test.Test {
|
||||
/*primary*/ private constructor A()
|
||||
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
|
||||
@@ -34,4 +28,8 @@ internal final enum class Test : kotlin.Enum<test.Test> {
|
||||
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
|
||||
}
|
||||
}
|
||||
|
||||
// Static members
|
||||
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.Test
|
||||
public final /*synthesized*/ fun values(): kotlin.Array<test.Test>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user