new inference: process captured wildcard with array type bound

This commit is contained in:
Anna Kozlova
2015-12-02 10:55:34 +01:00
parent b1ace85020
commit 5dad1d7009
3 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
import java.util.List;
abstract class Test {
public static void foo(List<? extends String[]> aClass) {
copyOfRange(aClass);
}
public static <P> void copyOfRange(List<? extends P[]> newType) {}
}