mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
captured wildcards on the first level do not prevent binary operator to be applicable (IDEA-89640)
This commit is contained in:
+12
@@ -231,4 +231,16 @@ class IDEA91481 {
|
||||
class BeanBuilder<<warning descr="Type parameter 'T' is never used">T</warning>> {}
|
||||
class Bean {}
|
||||
class DirectBean extends Bean {}
|
||||
}
|
||||
|
||||
class IDEA89640 {
|
||||
interface X {}
|
||||
class Y<<warning descr="Type parameter 'T' is never used">T</warning> extends X> {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Y<? extends X> a = null;
|
||||
Y<? extends X> b = null;
|
||||
boolean flag = a != b;
|
||||
System.out.println(flag);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user