langtools/test/tools/javac/generics/inference/8152411/T8152411.java
changeset 36716 4e98efed865f
equal deleted inserted replaced
36715:ae6fa9280e0b 36716:4e98efed865f
       
     1 /*
       
     2  * @test /nodynamiccopyright/
       
     3  * @bug 8152411
       
     4  * @summary Regression: nested unchecked call does not trigger erasure of return type
       
     5  *
       
     6  * @compile/fail/ref=T8152411.out -XDrawDiagnostics T8152411.java
       
     7  */
       
     8 import java.util.List;
       
     9 
       
    10 class T8152411 {
       
    11         <A2 extends A, A> A m(List<? super A2> a2) { return null; }
       
    12         <B> B g(B b) { return null; }
       
    13 
       
    14         void test() {
       
    15                 List<Integer> I = null;
       
    16                 String s = g(m(I));
       
    17         }
       
    18 }