jdk-24/test/langtools/tools/javac/enum/forwardRef/TestEnum6.java
2017-09-12 19:03:39 +02:00

14 lines
293 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6424491
* @summary Cannot initialise nested enums
* @author Peter von der Ah\u00e9
* @compile/fail/ref=TestEnum6.out -XDrawDiagnostics TestEnum6.java
*/
public enum TestEnum6 {
AAA(TestEnum6.AAA);
TestEnum6(TestEnum6 e) {
}
}