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

15 lines
282 B
Java

/*
* @test /nodynamiccopyright/
* @bug 5071831
* @summary javac allows enum in an inner class
* @author gafter
*
* @compile/fail/ref=NestedEnum.out -XDrawDiagnostics NestedEnum.java
*/
class NestedEnum {
class Inner {
enum NotAllowedInNonStaticInner {}
}
}