Minor, add test on Java enum with specialized entry

This commit is contained in:
Alexander Udalov
2015-04-02 18:53:50 +03:00
parent 3c1ead726b
commit 6279421094
8 changed files with 99 additions and 24 deletions
@@ -0,0 +1,13 @@
package test;
public enum EnumWithSpecializedEntry {
E1,
E2 {
String foo() {
return name();
}
};
static class Nested {}
}
@@ -0,0 +1,30 @@
package test
public open enum class EnumWithSpecializedEntry : kotlin.Enum<test.EnumWithSpecializedEntry!> {
public enum entry E1 : test.EnumWithSpecializedEntry {
private constructor E1()
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.EnumWithSpecializedEntry!): kotlin.Int
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
}
public enum entry E2 : test.EnumWithSpecializedEntry {
private constructor E2()
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.EnumWithSpecializedEntry!): kotlin.Int
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
}
private constructor EnumWithSpecializedEntry()
public final override /*1*/ /*fake_override*/ fun compareTo(/*0*/ other: test.EnumWithSpecializedEntry!): kotlin.Int
public final override /*1*/ /*fake_override*/ fun name(): kotlin.String
public final override /*1*/ /*fake_override*/ fun ordinal(): kotlin.Int
public/*package*/ open class Nested {
public/*package*/ constructor Nested()
}
// Static members
public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): test.EnumWithSpecializedEntry
public final /*synthesized*/ fun values(): kotlin.Array<test.EnumWithSpecializedEntry>
}