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
@@ -1,5 +1,5 @@
|
||||
|
||||
class A<K>{
|
||||
void foo(A<A<?>> b){ <error descr="Inferred type 'A<?>' for type parameter 'T' is not within its bound; should extend 'A<java.lang.Object>'">bar(b)</error>; }
|
||||
void foo(A<A<?>> b){ bar<error descr="'bar(A<T>)' in 'A' cannot be applied to '(A<A<?>>)'">(b)</error>; }
|
||||
<S, T extends A<S>> void bar(A<T> a){}
|
||||
}
|
||||
Reference in New Issue
Block a user