mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
check if super wildcard is within its bounds (IDEA-95065)
This commit is contained in:
+20
@@ -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) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user