mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
capture conversion: ensure captured wildcards are not replaced after creation, so substitution is consistent; at the same time ensure that "?" with upper bound Runnable is equivalent to "? extends Runnable"
This commit is contained in:
+1
-1
@@ -6,6 +6,6 @@ interface B<T extends Cloneable> {
|
||||
|
||||
class D {
|
||||
void bar(B<?> x, List<?> y) {
|
||||
x.foo<error descr="'foo(java.util.List<? super capture<? extends java.lang.Cloneable>>)' in 'B' cannot be applied to '(java.util.List<capture<?>>)'">(y)</error>;
|
||||
x.foo<error descr="'foo(java.util.List<? super capture<?>>)' in 'B' cannot be applied to '(java.util.List<capture<?>>)'">(y)</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user