jdk-24/test/langtools/tools/javac/T4994049/T4994049.java

18 lines
305 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
* @bug 4994049
* @summary Improved diagnostics while parsing enums
* @author Peter von der Ah\u00e9
* @compile/fail/ref=T4994049.out -XDrawDiagnostics T4994049.java
2007-12-01 00:00:00 +00:00
*/
public enum T4994049 {
FOO {
}
BAR1,
BAR2(),
BAR3 {},
BAR4() {};
2007-12-01 00:00:00 +00:00
}