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

13 lines
259 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4881265
* @summary generics: compiler allows T.class for type variable T
* @author gafter
*
* @compile/fail/ref=TyparamLit.out -XDrawDiagnostics TyparamLit.java
*/
class TyparamLit<T> {
Class x = T.class;
}