mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
temp solution (IDEA-118527)
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
|
||||
interface Listener<A0, B0> {}
|
||||
class Adapter<A, B> implements Listener<A, B> {}
|
||||
class Super<O, B> {
|
||||
public <C extends Adapter<O, B>> C apply(C configurer) throws Exception {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <C extends Listener<O, B>> C apply(C configurer) throws Exception {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class AdapterImpl extends Adapter<String, String>{}
|
||||
|
||||
class Child<O, B> extends Super<O, B> {}
|
||||
class D {
|
||||
|
||||
void foo(Child<String, String> ch, AdapterImpl a) throws Exception {
|
||||
ch.apply(a);
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
interface Listener<A0, B0> {}
|
||||
class Adapter<A, B> implements Listener<A, B> {}
|
||||
class Super<O, B> {
|
||||
public <C extends Adapter<O, B> & Runnable> C apply(C configurer) throws Exception {
|
||||
return null;
|
||||
}
|
||||
|
||||
public <C extends Listener<O, B> & Runnable> C apply(C configurer) throws Exception {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
abstract class AdapterImpl extends Adapter<String, String> implements Runnable{}
|
||||
|
||||
class Child<O, B> extends Super<O, B> {}
|
||||
class D {
|
||||
|
||||
void foo(Child<String, String> ch, AdapterImpl a) throws Exception {
|
||||
ch.apply( a);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user