mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
super wildcard processing (IDEA-62529 )
This commit is contained in:
+11
@@ -161,4 +161,15 @@ class CollectionHelper {
|
||||
final Collection<Number> numbers4 = CollectionHelper.<Number>convertUp(integers4);
|
||||
numbers4.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
//IDEA-62529
|
||||
class My<T> {
|
||||
private Class<? super T> getSuperclass(){
|
||||
return null;
|
||||
}
|
||||
|
||||
public void test() {
|
||||
if (getSuperclass() == List.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user