langtools/test/tools/javac/ClassToTypeParm.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 26274 02a5b23ee21c
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 4948144
 * @summary Generics: assignment of Class to type parm's default should elicit error
 * @author never
 *
 * @compile/fail/ref=ClassToTypeParm.out -XDrawDiagnostics  ClassToTypeParm.java
 */

class ClassToTypeParm<T> {
    void f(Class c) {
        T t = c;
    }
}