super wildcard processing (IDEA-62529 )

This commit is contained in:
anna
2010-12-08 12:40:10 +03:00
parent 294eb992e0
commit 19ccd895cb
2 changed files with 12 additions and 0 deletions
@@ -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);
}
}