mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
new inference: initial tests
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
abstract class A<T>{
|
||||
abstract <S> S foo(S x, S y);
|
||||
<S extends Number & Comparable<?>> void baz(A<S> a){}
|
||||
|
||||
void bar(A<Long> x, A<Integer> y){
|
||||
baz<error descr="'baz(A<S>)' in 'A' cannot be applied to '(A<capture<? extends java.lang.Number & java.lang.Comparable<? extends java.lang.Comparable<?>>>>)'">(foo(x, y))</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user