captures: distinguish by type parameters in method return type evaluation context

This commit is contained in:
Anna Kozlova
2014-12-16 10:45:02 +01:00
parent c81e323eab
commit 7933aad974
3 changed files with 13 additions and 1 deletions
@@ -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>;
}
}