16 lines
375 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
* @bug 6762569
* @summary Javac crashes with AssertionError in Types.containedBy
* @compile/fail/ref=T6762569b.out -XDrawDiagnostics T6762569b.java
2007-12-01 00:00:00 +00:00
*/
import java.util.*;
2007-12-01 00:00:00 +00:00
class T6762569b {
<T> void m(T t, List<? super List<T>> list) {}
void test(List<? super List<? extends Number>> list) {
m("", list);
2007-12-01 00:00:00 +00:00
}
}