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

/*
 * @test /nodynamiccopyright/
 * @bug 5023177
 * @summary One can refer static, const static variables from instance initializers of enum
 * @author gafter
 * @compile/fail/ref=DA3.out -XDrawDiagnostics DA3.java
 */

enum T3 {
    ;
    static int N = 12;
    T3() {
        int M = N;
    }
}