jdk-24/test/langtools/tools/javac/generics/TyparamLit.java

13 lines
259 B
Java
Raw Normal View History

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