langtools/test/tools/javac/generics/TyparamLit.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 30724 0686b5ea7958
permissions -rw-r--r--
Merge

/*
 * @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;
}