mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
13 lines
266 B
Java
13 lines
266 B
Java
interface Msg<T extends Msg<T>> {}
|
|
|
|
class Conv<T extends Msg<T>> {
|
|
static <A extends Msg<A>> Conv<A> createBar(A a) {
|
|
return null;
|
|
}
|
|
|
|
@SuppressWarnings("unchecked")
|
|
static void test() {
|
|
Conv<? extends Msg<?>> conv = Conv.createBar((Msg) null);
|
|
}
|
|
}
|