new inference: correct capture incorporation (IDEA-149807)

This commit is contained in:
Anna Kozlova
2015-12-28 19:07:22 +01:00
parent b6894df57d
commit 2be1c64a13
5 changed files with 22 additions and 2 deletions
@@ -0,0 +1,15 @@
import java.util.List;
class Main {
static List<? extends Child> foo() {
return get ();
}
static <T extends Base> List<? extends T> get() {
return null;
}
static class Base {}
static class Child extends Base {}
}