Fix TypeConstructor#getSupertypes() return type

This commit is contained in:
Pavel V. Talanov
2012-11-07 15:32:34 +04:00
parent daf9c6f2c1
commit a657a19253
10 changed files with 12 additions and 11 deletions
@@ -67,7 +67,7 @@ public class GotoSuperActionHandler implements CodeInsightActionHandler {
Collection<? extends DeclarationDescriptor> superDescriptors;
String message;
if (descriptor instanceof ClassDescriptor) {
Collection<? extends JetType> supertypes = ((ClassDescriptor) descriptor).getTypeConstructor().getSupertypes();
Collection<JetType> supertypes = ((ClassDescriptor) descriptor).getTypeConstructor().getSupertypes();
List<ClassDescriptor> superclasses = ContainerUtil.mapNotNull(supertypes, new Function<JetType, ClassDescriptor>() {
@Override
public ClassDescriptor fun(JetType type) {