langtools/test/tools/javac/T7126754.java
author sogoel
Thu, 05 Jun 2014 10:57:10 -0700
changeset 24797 850ebd4d80a7
parent 20250 26472e76d2f5
permissions -rw-r--r--
8044072: Group 2: create .out files for OverrideChecks tests in tools/javac dir Reviewed-by: jjg

/*
 * @test /nodynamiccopyright/
 * @bug 7126754
 * @summary Generics compilation failure casting List<? extends Set...> to List<Set...>
 * @compile T7126754.java
 */

import java.util.List;
import java.util.Set;

public class T7126754 {
  public static void main(String[] args) {
    List<Set<? extends String>> a = null;
    List<? extends Set<? extends String>> b = a;

    List<? extends Set<? extends String>> c = null;
    List<Set<? extends String>> d = (List<Set<? extends String>>)c;
  }
}