Files
kotlin/compiler/testData/loadJava/compiledJava/EnumMembers.java
Alexander Udalov 83ef095093 Change enum entry resolution strategy in JDR
Enum entry is now resolved into a class with a class object, which inherits
from the former class, as in the other parts of the compiler. Create a special
class EnumEntrySyntheticClassDescriptor which will be reused in deserialization
later
2013-12-02 19:56:06 +04:00

17 lines
256 B
Java

package test;
public enum EnumMembers {
FIRST(true),
SECOND(false);
public final boolean isFirst;
private EnumMembers(boolean isFirst) {
this.isFirst = isFirst;
}
public boolean first() {
return isFirst;
}
}