3789983e89
Reviewed-by: darcy, ihse
14 lines
293 B
Java
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) {
|
|
}
|
|
}
|