mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
SOE on infinite types with super wildcards (IDEA-138880; IDEA-77600)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
|
||||
class AsId <T extends HasId<? super T>> implements Id<T> {}
|
||||
interface HasId<T extends HasId<T>> {}
|
||||
interface Id<T extends HasId<? super T>>{}
|
||||
|
||||
interface Pong<T> {}
|
||||
class Ping<T> implements Pong<Pong<? super Ping<Ping<T>>>> {
|
||||
static void Ping() {
|
||||
Pong<? super Ping<Long>> Ping = new Ping<Long>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user