test/tools/javac/generics/typevars/6804733/T6804733.java

changeset 0
959103a6100f
child 2525
2eb010b6cb22
equal deleted inserted replaced
-1:000000000000 0:959103a6100f
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 6804733
4 * @summary javac generates spourious diagnostics for ill-formed type-variable bounds
5 * @author mcimadamore
6 * @compile/fail/ref=T6804733.out -XDrawDiagnostics T6804733.java
7 */
8
9 import java.util.ArrayList;
10 class T6804733<S> extends ArrayList<S> {
11 <T extends S & S> void m() {}
12 }

mercurial