mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
new inference: correct capture incorporation (IDEA-149807)
This commit is contained in:
+15
@@ -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 {}
|
||||
}
|
||||
Reference in New Issue
Block a user