substitution: do not open unbounded capture during substitution (IDEA-125423)

(cherry picked from commit 1a8180cabca79b6ab2972a759aaffaa043f60c57)
This commit is contained in:
Anna Kozlova
2014-10-17 21:05:53 +02:00
parent 0dd354b23b
commit 8dd8f509f6
6 changed files with 74 additions and 5 deletions
@@ -13,7 +13,7 @@ class Test {
class FooBar<T> {
void foo(final FooBar<?> fooBar){
//fooBar.supertype(Iterable.class);
fooBar.supertype<error descr="'supertype(java.lang.Class<? super capture<?>>)' in 'FooBar' cannot be applied to '(java.lang.Class<java.lang.Iterable>)'">(Iterable.class)</error>;
}
void foo1(final FooBar<? super T> fooBar){