mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-19 08:31:30 +00:00
For static members, a corresponding package is now created for every enum, as it's done for every other class. All static members of enum classes are resolved into the package, EXCEPT its enum entries, valueOf() and values() methods, which are put into the enum's class descriptor.
13 lines
287 B
Java
Vendored
13 lines
287 B
Java
Vendored
package test;
|
|
|
|
public enum StaticMembersInEnum {
|
|
ENTRY;
|
|
|
|
public static void foo() { }
|
|
public static void values(int x) { }
|
|
public static void valueOf(int x) { }
|
|
|
|
public static int STATIC_FIELD = 42;
|
|
public static final StaticMembersInEnum CONSTANT = ENTRY;
|
|
}
|