langtools/test/tools/javac/cast/7126754/T7126754.java
author hannesw
Tue, 22 Mar 2016 14:23:16 +0100
changeset 36690 06b714373aa4
parent 11549 cc901a28adc3
permissions -rw-r--r--
8151810: for-in iteration does not provide per-iteration scope Reviewed-by: attila, lagergren

/*
 * @test /nodynamiccopyright/
 * @author mcimadamore
 * @bug     7005671
 * @summary Generics compilation failure casting List<? extends Set...> to List<Set...>
 * @compile/fail/ref=T7126754.out -Xlint:unchecked -Werror -XDrawDiagnostics T7126754.java
 */

import java.util.List;

class T7126754 {
    List<? extends List<? extends String>> c = null;
    List<List<? extends String>> d = (List<List<? extends String>>)c;
}