jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 8286057
4* @summary Make javac error on a generic enum friendlier
5*
6* @compile/fail/ref=T8286057.out -XDrawDiagnostics T8286057.java
7*/
8
9class EnumsCantBeGeneric {
10public enum E1<> {}
11public enum E2<T> {}
12public enum E3<T, T> {}
13}
14