testdata for IDEA-58687

(cherry picked from commit 0be74138c6c6c288887944c26107a5d47bc5cd09)
This commit is contained in:
Anna Kozlova
2015-03-11 20:27:31 +01:00
parent f6de981477
commit f19a6c1ed8
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,15 @@
class ExposeProblem {
public abstract class Parent<A>{}
public abstract class Child<B, A> extends Parent<A> {
public <C> void method(final Parent<? extends B> f) {}
public <C> void method(final Child<C, ? extends B> f) {}
}
void call(){
Child<String, Integer> f1 = null;
Child<Integer, String> f2 = null;
f1.method(f2); // <= This is where the error is shown.
}
}