2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-07 12:44:20 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 5019609
|
|
|
|
* @summary javac fails to reject local enums
|
|
|
|
* @author gafter
|
2014-07-07 12:44:20 -07:00
|
|
|
* @compile/fail/ref=LocalEnum.out -XDrawDiagnostics LocalEnum.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class LocalEnum {
|
|
|
|
void f() {
|
|
|
|
enum B {}
|
|
|
|
}
|
|
|
|
}
|