jdk-24/test/langtools/tools/javac/T8286057.java
2022-05-24 10:31:11 +00:00

14 lines
281 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8286057
* @summary Make javac error on a generic enum friendlier
*
* @compile/fail/ref=T8286057.out -XDrawDiagnostics T8286057.java
*/
class EnumsCantBeGeneric {
public enum E1<> {}
public enum E2<T> {}
public enum E3<T, T> {}
}