mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
don't capture when checking subtypes deep in hierarchy (IDEA-179850)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
static void func1 (final List<? extends List<?>> list,
|
||||
final List<? extends List<String>> listOfStrings){
|
||||
func2 <error descr="'func2(java.util.List<? extends java.util.List<T>>)' in 'Test' cannot be applied to '(java.util.List<capture<? extends java.util.List<?>>>)'">(list)</error>;
|
||||
func2 (listOfStrings);
|
||||
}
|
||||
static <T> void func2( List<? extends List<T>> list ){ }
|
||||
}
|
||||
Reference in New Issue
Block a user