SOE on infinite types with super wildcards (IDEA-138880; IDEA-77600)

This commit is contained in:
Anna Kozlova
2015-04-08 13:12:21 +02:00
parent b347eff43d
commit 765f6faa19
3 changed files with 27 additions and 2 deletions
@@ -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>();
}
}