mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
captured of non-proper wildcard can't be used as solving bound (IDEA-180042)
This commit is contained in:
+11
@@ -43,3 +43,14 @@ class Test {
|
||||
return list.stream().collect(Collectors.toCollection(() -> create()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class TestWithNonProperTypeBeforeCapture {
|
||||
{
|
||||
Set<? super List<String>> set = foo();
|
||||
}
|
||||
|
||||
private <K> Set<? super List<K>> foo() { //#CAP<? super List<K>> is not proper, can't be used as eq bound
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user