test/tools/javac/generics/inference/6638712/T6638712d.java

changeset 0
959103a6100f
child 2525
2eb010b6cb22
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/javac/generics/inference/6638712/T6638712d.java	Wed Apr 27 01:34:52 2016 +0800
     1.3 @@ -0,0 +1,18 @@
     1.4 +/*
     1.5 + * @test /nodynamiccopyright/
     1.6 + * @bug     6638712 6730468
     1.7 + * @author  mcimadamore
     1.8 + * @summary Inference with wildcard types causes selection of inapplicable method
     1.9 + * @compile/fail/ref=T6638712d.out -XDrawDiagnostics T6638712d.java
    1.10 + */
    1.11 +
    1.12 +import java.util.*;
    1.13 +
    1.14 +public class T6638712d {
    1.15 +
    1.16 +    <U> U m(U u, List<List<U>> list) { return null; }
    1.17 +
    1.18 +    void test(List<List<String>> lls) {
    1.19 +        m(1, lls);
    1.20 +    }
    1.21 +}

mercurial