1/*
2 * @test /nodynamiccopyright/
3 * @bug 4948144
4 * @summary Generics: assignment of Class to type parm's default should elicit error
5 * @author never
6 *
7 * @compile/fail/ref=ClassToTypeParm.out -XDrawDiagnostics  ClassToTypeParm.java
8 */
9
10class ClassToTypeParm<T> {
11    void f(Class c) {
12        T t = c;
13    }
14}
15