2015-05-15 16:53:42 -07:00

15 lines
268 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4942201
* @summary java allows class literal on generic type parameter array
* @author gafter
*
* @compile/fail/ref=GenLit2.out -XDrawDiagnostics GenLit2.java
*/
package genLit2;
class U<T> {
Class t = T[].class;
}