mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
new inference: don't push resolved vars in case of failed substitution
This commit is contained in:
+1
-1
@@ -10,6 +10,6 @@ class Bug1<A, B> {
|
||||
<X, Y extends X> void f1(Bug1<X, Y> b) {}
|
||||
|
||||
void f2(Bug1<?, ?> b) {
|
||||
<error descr="Inferred type 'capture<?>' for type parameter 'Y' is not within its bound; should extend 'capture<?>'">f1(b)</error>;
|
||||
f1<error descr="'f1(Bug1<X,Y>)' in 'Bug1' cannot be applied to '(Bug1<capture<?>,capture<?>>)'">(b)</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user