Skipping error types when processing alternative signatures.

This commit is contained in:
Evgeny Gerashchenko
2013-10-17 18:17:41 +04:00
parent 6c9a5e6a5f
commit 369824cd2e
@@ -101,7 +101,11 @@ public class TypeTransformingVisitor extends JetVisitor<JetType, Void> {
return visitCommonType(DescriptorUtils.getFQName(classDescriptor).toSafe().asString(), type);
}
@NotNull
private JetType visitCommonType(@NotNull String qualifiedName, @NotNull JetTypeElement type) {
if (originalType.isError()) {
return originalType;
}
TypeConstructor originalTypeConstructor = originalType.getConstructor();
ClassifierDescriptor declarationDescriptor = originalTypeConstructor.getDeclarationDescriptor();
assert declarationDescriptor != null;