2015-05-15 17:43:21 -07: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;
}