mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
captures: distinguish by type parameters in method return type evaluation context
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
class B<S, M> {}
|
||||
abstract class A<T> {
|
||||
<K> void baz(B<K, K> a) {}
|
||||
abstract B<?, ?> foo();
|
||||
void bar(A<?> a) {
|
||||
baz<error descr="'baz(B<capture<?>,capture<?>>)' in 'A' cannot be applied to '(B<capture<?>,capture<?>>)'">(a.foo())</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user