2009-06-16 10:46:37 +01:00
|
|
|
/*
|
2009-08-27 11:08:27 -07:00
|
|
|
* @test /nodynamiccopyright/
|
2009-06-16 10:46:37 +01:00
|
|
|
* @bug 6638712 6730468
|
|
|
|
* @author mcimadamore
|
|
|
|
* @summary Inference with wildcard types causes selection of inapplicable method
|
|
|
|
* @compile/fail/ref=T6638712d.out -XDrawDiagnostics T6638712d.java
|
|
|
|
*/
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
public class T6638712d {
|
|
|
|
|
|
|
|
<U> U m(U u, List<List<U>> list) { return null; }
|
|
|
|
|
|
|
|
void test(List<List<String>> lls) {
|
|
|
|
m(1, lls);
|
|
|
|
}
|
|
|
|
}
|