Load Java static members from parents
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
package test;
|
||||
|
||||
interface Parent1 {
|
||||
public static int a = 1;
|
||||
public static int b = 2;
|
||||
}
|
||||
|
||||
interface Parent2 {
|
||||
public static int d = 1;
|
||||
public static int e = 2;
|
||||
}
|
||||
|
||||
enum StaticMembersInEnum implements Parent1, Parent2 {
|
||||
ENTRY;
|
||||
|
||||
public static int b = 3;
|
||||
public static int c = 4;
|
||||
public static int d = 4;
|
||||
|
||||
public static void foo() { }
|
||||
}
|
||||
Reference in New Issue
Block a user