langtools/test/tools/javac/enum/NestedEnum.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 25437 a06886489a6c
permissions -rw-r--r--
Merge

/*
 * @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 {}
    }
}