mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
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.
|
|
}
|
|
} |