mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-18 22:42:49 +07:00
f19a6c1ed8
(cherry picked from commit 0be74138c6c6c288887944c26107a5d47bc5cd09)
15 lines
397 B
Java
15 lines
397 B
Java
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.
|
|
}
|
|
} |