check if super wildcard is within its bounds (IDEA-95065)

This commit is contained in:
anna
2012-11-15 21:37:07 +01:00
parent 6f21decc3d
commit 2c3fd187d5
3 changed files with 23 additions and 2 deletions
@@ -0,0 +1,20 @@
class TopGene<T> {
}
class MidRaw extends TopGene {
}
class BottomGene<T> extends MidRaw {
}
class GeneType<T extends TopGene<String>> {
}
class GeneUser {
public void success(GeneType<? extends BottomGene<String>> p) {
}
public void fail(GeneType<<error descr="Type parameter '? super BottomGene<String>' is not within its bound; should extend 'TopGene<java.lang.String>'">? super BottomGene<String></error>> p) {
}
}